NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Reindex in place
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Reindex in place
editTo manually reindex your old indices with the reindex API:
- Create a new index and copy the mappings and settings from the old index.
-
Set the
refresh_intervalto-1and thenumber_of_replicasto0for efficient reindexing. - Reindex all documents from the old index into the new index using the reindex API.
-
Reset the
refresh_intervalandnumber_of_replicasto the values used in the old index. -
Wait for the index status to change to
green. -
In a single update aliases request:
- Delete the old index.
- Add an alias with the old index name to the new index.
- Add any aliases that existed on the old index to the new index.