Hi there,
I want to get some clarity on the reindexing API and how does it work.
After talking to an ES developer I understood few points on the high level.
But still I am having a doubt with the below question:-
If I want to reindex an index again which has been reindexed earlier. But this time I have made some updates in the source index.
Does reindexing again would update the destination?
I tried doing this like:
First, I did reindexing with particular source and destination
Second, Then I deleted one document from the source index and did reindexing with same source and destination.
But the destination is showing the earlier count of the documents (It is neither increased nor decreased)
Reindexing reads all existing documents in the source index (at the time it is started) and writes them to the destination index. Updated documents will be read but deleted documents are no longer present, so you get to keep the original document in the destination index. If you marked it as deleted and excluded it from queries it would be transferred as it still exists but just deleting it will not unless you reindex to a new and empty index.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.