I got some strange behavior that I don't know if I need to do some configuration or is elasticsearch nature.
If I use a query multiple times, sometimes I get different results.
For example, on the first run I could get [1, 2, 3, 4, 5, 6 ,7, 8, 9, 10]
then I may get [10, 1, 2, 3, 4, 5, 6, 7, 8, 9]
or [1, 2, 3, 4, 5, 6, 7, 8, 9, 11]
This inconsistency in results for the same query is causing me problems.
Is there a way to avoid this?
I use localhost:9200/myIndex/myType/_search?search_type=dfs_query_then_fetch