Elasticsearch Index alias Disappeared when building new index

The problem we are facing is losing the index alias during the process described below. We created a cron job that runs and gets new data. this data is used to build a new index that replaces the old data that we have in our index. the old index is pointed by an alias. we are creating the new index, the new mapping, and settings, and index data. the last step is to change the alias to point to the new index’ and delete the old index. at this point, we can’t find the alias and we need to rebuild the index and the alias.

Hey @shim.wie

That’s quite a sequence - I think for folks to help you, you’ll probably want to be a bit more specific about the steps you are taking. Maybe an example or reproducible steps?