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:

  1. Create a new index with the new or modified mapping.
  2. Reindex all the records.
  3. 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.