-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bool
query behaviour on null value
#56817
Conversation
Until 7.7 we used to ignore `null` values for `minimum_should_match` in `bool` queries. An internal refactoring has changed this so now we get a parsing error. While `null` should not a common value here, we should restore the old behaviour at least on the 7.x lines. Closes elastic#56812
Pinging @elastic/es-search (:Search/Search) |
fwiw I'm okay if we want to error on this in 8.0, in that case I'll leave a comment in the change notes but would port this back to open 7 branches. Also think accepting |
@romseygeek it was also just brought up on the issue that before 7.7 also |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @cbuescher
Until 7.7 we used to ignore `null` values for `bool`queries `minimum_should_match`, parameters and also for the `must`, `must_not`, `should` and `filter` clauses. An internal refactoring has changed this so now we get a parsing error. While `null` should not a common value here, we should restore the old behaviour for bwc for now. Closes #56812
Until 7.7 we used to ignore `null` values for `bool`queries `minimum_should_match`, parameters and also for the `must`, `must_not`, `should` and `filter` clauses. An internal refactoring has changed this so now we get a parsing error. While `null` should not a common value here, we should restore the old behaviour for bwc for now. Closes #56812
Until 7.7 we used to ignore `null` values for `bool`queries `minimum_should_match`, parameters and also for the `must`, `must_not`, `should` and `filter` clauses. An internal refactoring has changed this so now we get a parsing error. While `null` should not a common value here, we should restore the old behaviour for bwc for now. Closes #56812
minimum_should_match
behaviour on null valuebool
query behaviour on null value
Until 7.7 we used to ignore
null
values forminimum_should_match
inbool
queries. An internal refactoring has accidentally changed this so now we get a parsing error.
While
null
should not be a common value here, we should restore the old behaviourat least on the 7.x lines.
Closes #56812