I am trying to change the mapping of an index, but getting an error. Here are the steps I am taking to create the index
- create the index by populating it through a python script
set the mapping with this code:
PUT /myidx/orderrow/_mapping { "orderrow": { "properties": { "item_code": { "type": "string", "index": "not_analyzed" } } } }
Here's the error message I get:
{
"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
}
Any ideas?