Destination:
GET _cat/indices/<index_name>
green open <index_name> 5 1 827906 0 2.1gb 1gb
Could you please explain why there is this huge difference between source and destination when I "cat" the index ? however the "count" is perfectly fine?
What huge difference? The size difference has several possibilities...
You have deleted documents in the source index that take up space that are not in the destination. This is most likely the difference The counts appear to be the same... when you run count, why _cat/indices are not the same unclear
Did you guarantee the mapping is consistent between the source and destination ... Did you create the destination index with the exact same mapping of the source or did you just run reindex
If the source index has been around for a while elasticsearch may have done some merging (aka compaction in the background).
Between the version there may be some small differences but I suspect 1 is the most likely with also 2 or 3 maybe adding some small variance.
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.