-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Multi nested inner_hits failing with NPE if _source is filtered #33170
Labels
Comments
Pinging @elastic/es-search-aggs |
jimczi
added a commit
to jimczi/elasticsearch
that referenced
this issue
Aug 27, 2018
If an exclude or an include clause removes an entry to a nested field in the original source at query time, the creation of nested hits fails with an NPE. This change fixes this exception and replaces the nested document source with an empty map. Closes elastic#33163 Closes elastic#33170
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The scenario above fails with the following stack trace, but if I remove the
includes
block, it returns the matching document:The text was updated successfully, but these errors were encountered: