Is _reindex api an online aciton or not


Elastic 7.16.3

I was curious, is _reindex api an online action or not..?
Like, does it take any read or write locks on source index or not.


No, it does not lock anything.

What if during the reindex process, several documents are indexed in the source index.
Does these new documents also find their way to new index..?


No, any changes after the reindex has started will not be captured as it works off a point in time snapshot.

Ok, but what are my options of how can I index these several documents that have been added to source index after the reindex has started.


You will need to trigger another reindex.

The documents already indexed by the previous reindex will be updated, regardless of any change or note, and the new documents will be written into the index.

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