Match query influenced by #shards

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

Hello,

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

Kind regards,

Different scoring

Hello,

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

Kind regards,

1 Like

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