Skip to content
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

Alias field does not work with geo_shape query (#74895) #75100

Merged
merged 1 commit into from
Jul 8, 2021

Conversation

iverase
Copy link
Contributor

@iverase iverase commented Jul 8, 2021

When using an alias field on a geo_shape query, the final field name is not resolve properly. This PR fixes it by using the field type name when calling geoShapeQuery. Note that this still works if the geo_shape field is using legacy parameters.

In addition, this PR is refactoring further the GeoShape query Test in order to separate the test that goes to the legacy implementation.

backport #74895

Fixes the resolution of the field name in the geo_shape query.
@iverase iverase merged commit 0dc8d02 into elastic:7.x Jul 8, 2021
@iverase iverase deleted the backport74895 branch July 8, 2021 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant