I've gone through the _reindex api documentation a few times, and can't figure out if it's possible or not. Once the document is copied from the source index to the destination index, is it possible to also remove the source document so that I can reduce some disk space overhead during reindexing?
Hello @Deb
According to documentation https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html that's not possible.
It wouldn't make so much sense because internally when you delete a documment it doesn't free the space until a _forcemerge is done https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-forcemerge.html and the segments are merged expunging the deletes.
In theory you shouldn't have issues with storage space if you are not over the watermark 85% by default.
I hope this helps
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.