I am indexing via bulk api (provided by org.elasticsearch.client.RestHighLevelClient ), the number of document I index is 381942 but when I use the _count api of elasticsearch it shows lesser count, that number varies each time I index but it is always less (e.g. 238632, 279241, 282325 etc). When I try to refresh then the count increases by 1. What's going on?
Note: I have checked the response and there are no failures , as well.
my bad, It is not elasticsearch problem, I didn't add order by in my query, so as per Postgres the order won't be consistent. Once I added the order by class it is working fine
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.