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

Add support for Spatial Relationships to geo_point field (#67631) #67762

Merged
merged 2 commits into from
Jan 20, 2021

Conversation

iverase
Copy link
Contributor

@iverase iverase commented Jan 20, 2021

In. #52382 support for geo_shape queries over geo_pint fields was added with the limitation that only INTERSECTS spatial relationships were allowed. This was mainly due to a limitation on Lucene implementation.

With the upgrade to Lucene 8.8, this limitation has been removed. Therefore this PR adds the possibility to query geo_point fields using any of the supported spatial relationships.with this change, querying geo_point or geo_shape fields should be transparent to a user as they support the same type of queries.

Note that in this PR, query processors are removed and the logic to constructs Lucene queries is moved to the Field types.

backport #67631

Lucene 8.8 supports to query LatLonPoint field using spatial relationships.
@iverase iverase merged commit 169444e into elastic:7.x Jan 20, 2021
@iverase iverase deleted the backport67631 branch January 20, 2021 15:20
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