You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In previous versions of Elasticsearch, a bool query with an empty should array would return zero hits whereas in the latest version, an empty should array behaves as a match_all. Is this the intended behavior?
The text was updated successfully, but these errors were encountered:
Shouldn't we be able to toggle out of this behavior by using minimum_should_match?
I've noticed that if the minimum_should_match value > number of should clauses, then minimum_should_match is ignored. This seems like an unintended pitfall for systems where queries are programmatically generated (from query-understanding or otherwise).
When executing a bool query with an empty should array, there is a change in behavior from previous versions:
Consider this query:
In version:
Version: 1.2.1, Build: 6c95b75/2014-06-03T15:02:52Z, JVM: 1.7.0_51
The previous query will return this result:
Whereas from version:
Version: 1.3.4, Build: a70f3cc/2014-09-30T09:07:17Z, JVM: 1.7.0_65
and above, it will give the following result:
In previous versions of Elasticsearch, a bool query with an empty should array would return zero hits whereas in the latest version, an empty should array behaves as a match_all. Is this the intended behavior?
The text was updated successfully, but these errors were encountered: