Is elasticsearch non-deterministic?

Does elasticsearch return the same results in the same order every time a query is executed due to its invoice calculation algorithm? Or something else? Is there a way to make sure that the results are returned in the same order each time the query is executed? This is normal?

+4
source share
1 answer

This may be due to how the default elasticity search calculates local default relevance values.

Try adding:

&search_type=dfs_query_then_fetch 

to your request and see if that helps. This tells ES to calculate grades across the cluster.

Additional Information:

http://www.elasticsearch.org/blog/understanding-query-then-fetch-vs-dfs-query-then-fetch/

+4
source

Source: https://habr.com/ru/post/1495625/


All Articles