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
source exclusion mapping prevents geo shape coordinates to be returned in query result source field #2944
Comments
Hey, this looks really strange.. I managed to reproduce it with a smaller example and will try to take a look at it
As soon as the source exclude is omitted in the mapping, everything is working again. The GET on the id also works as expected. |
The filter method of XContentMapValues actually filtered out nested arrays/lists completely due to a bug in the filter method, which threw away all data inside of such an array. Closes elastic#2944 This bug was a follow up problem, because of the filtering of nested arrays in case source exclusion was configured.
Hi, I was just trying this in ES 0.90.1 and I still get the same error as reported above. Could you please reopen this issues and doublecheck again? Thanks a lot. |
@fxh hey, will reopen it and recheck as soon as possible |
The filter method of XContentMapValues actually filtered out nested arrays/lists completely due to a bug in the filter method, which threw away all data inside of such an array. Closes #2944 This bug was a follow up problem, because of the filtering of nested arrays in case source exclusion was configured.
@fxh we did not include the fix in the 0.90 branch, even though I thought so. I have just pushed it into the 0.90 release branch so it will be included in the next release. Sorry for the inconvenience and thanks for bringing it up again! |
The filter method of XContentMapValues actually filtered out nested arrays/lists completely due to a bug in the filter method, which threw away all data inside of such an array. Closes elastic#2944 This bug was a follow up problem, because of the filtering of nested arrays in case source exclusion was configured.
ES Version: 0.90.0.RC2
Steps to reproduce:
ok case, without source exclusion:
returns the coordinates for geo_point and geo_shape items:
however the same scenario but with a source exclusion mapping of an arbitrary field does not return the geo_shape coordinates any longer:
returns only the geo_point coordinates but not the geo_shape coordinates:
The text was updated successfully, but these errors were encountered: