Each time when I run the query I get different results in terms of the
documents returned. The number of hits is the same. In fact there seem
to be 2 types of results, obtained at every other run.
Why do I get this behaviour? Is there any way to make the search
consistent?
match_all has not guarantees for ordering (even when you do dfs phase). The
reason you see two sets of results is that it hits one set of shards, and
then another (within a shard, match_all will have the same order, but not
between a shard and its replica).
Each time when I run the query I get different results in terms of the
documents returned. The number of hits is the same. In fact there seem
to be 2 types of results, obtained at every other run.
Why do I get this behaviour? Is there any way to make the search
consistent?
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.