Elasticsearch插入新字段

在已存在的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     是新增字段类型

posted @ 2018-03-19 15:28  穷开心y  阅读(4623)  评论(0编辑  收藏  举报