matchish / laravel-scout-elasticsearch

Search among multiple models with ElasticSearch and Laravel Scout
MIT License
702 stars 113 forks source link

is there any way to revert to the previous index state before reindexing ? #267

Open ahmedsayedabdelsalam opened 9 months ago

hkulekci commented 9 months ago

As I know we are not keeping any state for previous index but we may check with together what we can do if you can write the logic you think.

ahmedsayedabdelsalam commented 9 months ago

thanks for your reply, I am thinking a mechanism to failover if the new index is corrupted and we want to revert back quickly, I suggest keeping the last previous index so we can make the alias point to it in case of failure or corrupted data it will be better waiting to reindex again the previous state. what do you think?

matchish commented 9 months ago

we switch to new index only when new index finished without errors