I am using one alias for search with one index index_1
with is_write_index
set to true
. Due to mapping changes I need to reindex and this is my indexing process.
- Create a new index
index_2
with the new mapping - Reindex
index_1
toindex_2
- Add the alias used in
index_1
toindex_2
withis_write_index
set totrue
forindex_2
- Reindex
index_1
toindex_2
to sync the latest changes - Delete
index_1
The issue I am having is that from step 3, queries to the alias is returning duplicate results. How to avoid this issue ?