Match query influenced by #shards

(Bert Vervaele) #1


I have a unit test that puts 10 object in Elastic and then uses a bool must match query to find certain results.
I wrote the test when we used 7shards/index.
Now we only use 3 and the test fails.
Can someone explain why Elastic returns something different when using 3 shards instead of 7?

Kind regards

(Thomas Deweer) #2


What do you mean "returns something different"? Do you get different query results or different scoring?

Kind regards,

(Bert Vervaele) #3

Different scoring

(Thomas Deweer) #4


I think what you are looking for is: .

Kind regards,

(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.