我試圖更改索引的映射,但出現錯誤。以下是具體步驟我正創建索引爲索引創建映射時出錯
- 通過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