Change index mapping with minimal downtime

I am using ElasticSearch 6.5.
I need to change some mappings in my index. The way I am doing this right now is:

  • Create a new index, with updated mapping.
  • Use Reindex API to move data to new index.
  • Delete an old index.

The operation works ok, but with larger volumes of data, it takes, relatively, long time. During reindexing, the application cannot update documents: changes in an old index will not be moved to a new index, in a new index particular document can not be present yet.
Is this the right approach to perform such operation? Looking for ways to minimize time, when the index is not available for update.
Any parameters that can be tuned, to speed up reindexing?

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