小编C.R*_*lon的帖子

在ElasticsearchEDIT上将字段类型从文本迁移到关键字:

当我想使用此命令将字段类型从文本更改为关键字时:

PUT indexStat/_mapping/StatCateg
{
  "StatCateg":{
    "properties": {
      "nom_categorie": {
        "type":"keyword","index": true
      }
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

我有这样的信息:

{
  "error": {
    "root_cause": [
      {
        "type": "illegal_argument_exception",
        "reason": "mapper [nom_categorie] of different type, current_type [text], merged_type [keyword]"
      }
    ],
    "type": "illegal_argument_exception",
    "reason": "mapper [nom_categorie] of different type, current_type [text], merged_type [keyword]"
  },
  "status": 400
}
Run Code Online (Sandbox Code Playgroud)

mapping elasticsearch

8
推荐指数
2
解决办法
1万
查看次数

标签 统计

elasticsearch ×1

mapping ×1