Reindex and concurrent writings in the source index

Hi, I'm trying to change the index mapping and reindex without downtime.

The strategy is:

  1. create a new-index with the new mapping
  2. reindex the old-index to the new-index
  3. swap the alias from the old-index to the new-index
  4. reindex again the old-index to the new-index (to handle eventually lost data)
  5. drop the old-index

My questions are:

  • What happen to the new data written in the source index during the reindex process?
  • I really need the step 4?
  • Is there a smarter way to do what I want to do?

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.