Setting index.mapper.dynamic was removed after version 6.0.0

昨天需要在生产环境发布一下,加了一个字段。发现居然报错,错误如下

root@walrus:/data/a8service/source# curl -X PUT "http://ca.yorkbbs.elasticsearch:9200/metaobject/_mapping?pretty" -H 'Content-Type: application/json' -d'
> {
>   "properties": {
>     "property_inWeChat": {
>       "type": "long"
>     }
>   }
> }
> '
{
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "Setting index.mapper.dynamic was removed after version 6.0.0"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "Setting index.mapper.dynamic was removed after version 6.0.0"
  },
  "status" : 400
}

背景说明一下,
ES版本7.1.4,有测试环境和生产环境
以上脚本在测试环境执行过,且是成功的。
只是在ES里加了一个字段,并不是修改dynamic,网上搜索到的,和这个都不一样。
很奇怪。

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.