laravel-scout-elasticsearch icon indicating copy to clipboard operation
laravel-scout-elasticsearch copied to clipboard

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

Open ahmedsayedabdelsalam opened this issue 1 year ago • 3 comments

ahmedsayedabdelsalam avatar Nov 29 '23 13:11 ahmedsayedabdelsalam

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.

hkulekci avatar Nov 30 '23 04:11 hkulekci

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?

ahmedsayedabdelsalam avatar Dec 03 '23 10:12 ahmedsayedabdelsalam

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

matchish avatar Dec 04 '23 12:12 matchish