码迷,mamicode.com
首页 > 其他好文 > 详细

Elasticsearch插入新字段

时间:2018-03-19 16:54:27      阅读:965      评论:0      收藏:0      [点我收藏+]

标签:col   tty   基础   http   index   AC   ica   arc   elastic   

在已存在的mapping基础上新增字段:

curl -XPUT http://127.0.0.1:9200/ik_sl_v1_201711/_mapping/taonei?pretty -H Content-Type: application/json -d{
  "properties": {
    "long_followerCount": {
      "type": "long"
    }
  }
}

注:ik_sl_v1_201711 是index

  taonei     是type

  long_followerCount 是新增字段名称

  long     是新增字段类型

Elasticsearch插入新字段

标签:col   tty   基础   http   index   AC   ica   arc   elastic   

原文地址:https://www.cnblogs.com/hcy-fly/p/8602463.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!