deconst / deconst-docs

Documentation for the Deconst project itself.
https://deconst.horse/
6 stars 12 forks source link

Atomic reindex #204

Closed smashwilson closed 8 years ago

smashwilson commented 8 years ago

I'd like to make /reindex create a brand new index on each invocation, so that:

In order to do this, but also not disrupt search for a minute or two each time, I'd prefer to:

  1. Query against an alias to the envelope index rather than using the index directly.
  2. Create a new index with a new name on each call.
  3. Once reindexing has completed successfully, update the alias to point to the new index.
  4. Delete the old index.
smashwilson commented 8 years ago

Alright, I should do this one sooner rather than later, before we go live with any search pages :notes: