What are the best practices (or other things to consider) when updating an index? To be more specific one option we're looking at is pointing our app to an alias and having an index attached to the alias. Then periodically creating a completely fresh index and swapping it into the alias and deleting the old index:
- Have an alias pointing to an index
- Create a new index
- Remove the index in (1) out of the alias
- Add the index created in (2) into the alias in (1).
The other alternative is to perform crud operations to the documents in the index which seems to me to be quite complex. However is it better practice than the four-step process I've described?