- Elasticsearch 7.0 Cookbook(Fourth Edition)
- Alberto Paro
- 88字
- 2021-06-24 14:52:19
There's more...
There is no delete operation for mapping. It's not possible to delete a single mapping from an index. To remove or change a mapping, you need to manage the following steps:
- Create a new index with the new or modified mapping.
- Reindex all the records.
- Delete the old index with an incorrect mapping.
In Elasticsearch 5.x or above, there is also a new operation to speed up this process: the reindex command, which we will see in the Reindexing an index recipe in this chapter.