babenkoivan / elastic-migrations

Elasticsearch migrations for Laravel
MIT License
188 stars 32 forks source link

Zero downtime migrations? #21

Closed robigoal closed 3 years ago

robigoal commented 3 years ago

Is it possible to adjust the mapping of the fields in the index with this package? In an older package we used scout-elasticsearch-driver#zero-downtime-migration which created a new index with the new mapping, imported the data and changed the used alias if everything went fine.

Thanks for your great work!

Robert

babenkoivan commented 3 years ago

Hey @robigoal, I've decided not to include such feature out of the box, because it doesn't fit every project. Instead, I'll create a wiki page and describe how to create a zero-downtime migration. I'll work on it in the near future.

babenkoivan commented 3 years ago

Hi @robigoal, as promised here this the guide. I hope it will be helpful for you 🙂