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

相关文章:

  • 2022-12-23
  • 2021-07-04
  • 2021-08-25
  • 2022-02-04
  • 2021-07-26
  • 2021-11-05
  • 2021-07-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案