How to delete a field mapping in elastic search How to delete a field mapping in elastic search elasticsearch elasticsearch

How to delete a field mapping in elastic search


You cannot delete the status field from this mapping. If you really need to get rid of this field, you'll have to create another mapping without status field and reindex your data. Look at this answer.


If you just need to change the mapping type on the status field, then you can't delete it, but you can change it to a multi_field type, which indexes the field with multiple option sets.

Old data won't be indexed to the new field, but index requests moving forward will. In some use cases, it's a decently alternative for "delete the index and create a new one with a new mapping".

https://www.elasticsearch.org/guide/en/elasticsearch/reference/0.90/mapping-multi-field-type.html