Reindex in place

edit

To manually reindex your old indices with the reindex API:

  1. Create a new index and copy the mappings and settings from the old index.
  2. Set the refresh_interval to -1 and the number_of_replicas to 0 for efficient reindexing.
  3. Reindex all documents from the old index into the new index using the reindex API.
  4. Reset the refresh_interval and number_of_replicas to the values used in the old index.
  5. Wait for the index status to change to green.
  6. In a single update aliases request:

    1. Delete the old index.
    2. Add an alias with the old index name to the new index.
    3. Add any aliases that existed on the old index to the new index.