我试图更改索引的映射,但出现错误。以下是具体步骤我正创建索引为索引创建映射时出错
- 通过Python脚本
设置与此代码映射填充它创建索引:
PUT /myidx/orderrow/_mapping { "orderrow": { "properties": { "item_code": { "type": "string", "index": "not_analyzed" } } } }
这里的错误信息我得到:
{
"error": "MergeMappingException[Merge failed with failures {[mapper [item_code] has different index values, mapper [item_code] has different `norms.enabled` values, mapper [item_code] has different tokenize values, mapper [item_code] has different index_analyzer]}]",
"status": 400
}
任何想法?
我不知道我可以先创建映射,这在我看来是一个更好的方法。我去做。谢谢! –
我使用'ignore_conflicts'将现有属性的'store'值更改为'true',但尽管'acknoleged:true'没有改变。 – SerG
'ignore_conflicts'已被删除https://github.com/elastic/elasticsearch/pull/11203 – BrunoLM