-
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
The use of stored_field on root level and inner_hits level throws NPE #32941
Labels
Comments
Pinging @elastic/es-search-aggs |
jimczi
added a commit
to jimczi/elasticsearch
that referenced
this issue
Aug 21, 2018
Now that types are unique per mapping we can retrieve the document mapper without referencing the type. This fixes an NPE when stored fields are disabled. For 6x we'll need a different fix since mappings can still have multiple types. Relates elastic#32941
@jimczi can this fix be backported to 6.5 as well? |
It needs to be modified to handle multi-types but it's certainly doable @astefan. I'll work on a pr. |
Tested the relevant SQL issues this was causing and it's all fixed. Thanks again @jimczi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the following mapping:
And using this query (
stored_fields: _none
should be placed on both root level andinner_hits
level):The search fails with NPE. Stacktrace below:
The text was updated successfully, but these errors were encountered: