-
Notifications
You must be signed in to change notification settings - Fork 25k
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
NullPointerException if percolate query is used inside bool query #29429
Comments
Pinging @elastic/es-search-aggs |
@Lumaraf Thanks for reporting this bug and sharing an easy way to reproduce it. What I do wonder is why you are trying to use a |
I don't have percolate queries stored in percolator fields. For the example mapping i only reduced the fields to the absolute minimum necessary to reproduce the bug. Fields used by the percolator and those stored in the documents are kept separate in my actual use case. |
@Lumaraf Ok, that makes sense. |
In the case that a document with a percolator field is matched when using the `percolate` query then the fetch phase can fail due to the fact that the percolator can't resolve any query from that document. Closes #29429
In the case that a document with a percolator field is matched when using the `percolate` query then the fetch phase can fail due to the fact that the percolator can't resolve any query from that document. Closes #29429
Elasticsearch version:
6.2.3
JVM version:
1.8.0_161
OS version (
uname -a
if on a Unix-like system):Debian 4.9.30-2+deb9u2
Description of the problem including expected versus actual behavior:
A NullPointerException is thrown if a percolate query is used inside a bool query if other should clauses match, but not the percolate query.
Steps to reproduce:
Log:
The text was updated successfully, but these errors were encountered: