-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Mastering Elastic Stack
By :

Re-indexing data in Elasticsearch is a challenge when you have changed the schema or mappings of the fields. Upon changing the schema, you are either required to re-index all the documents of that field to incorporate mapping changes to previous documents stored, or to not re-index older documents, which will become useless with the change in schema.
Process of re-indexing data:
To minimize the effect and downtime of changing the schema and re-indexing, use the following approach.
Aliases are a powerful feature that can easily re-index the complete index data without any downtime. Alias can be considered as a nickname given to the index name. It can be considered as a symbolic link.
Let us see how to use aliases:
After updating the schema/mappings: