Match query influenced by #shards


(Bert Vervaele) #1

Hi,

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

Hello,

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

Hello,

I think what you are looking for is: https://www.elastic.co/guide/en/elasticsearch/guide/current/relevance-is-broken.html .

Kind regards,


(system) #5

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