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 distance queries on geo_shape queries (#53466) #53795

Merged
merged 1 commit into from
Mar 19, 2020

Conversation

iverase
Copy link
Contributor

@iverase iverase commented Mar 19, 2020

With the upgrade to Lucene 8.5, LatLonShape field has support for distance queries. This change implements this new feature and removes the limitation.

In addition the strategy for building queries is changed as Lucene adds a new interface method called LatLonShape.newGeometryQuery that takes an array of Lucene geometries. This allows the query engine to build the most efficient query for the given parameters. For example an intersect query with a geometry collection currently creates one query per geometry. With this change, the engine can build just one query with all geometries.

backport #53466

With the upgrade to Lucene 8.5, LatLonShape field has support for distance queries. This change implements this new feature and removes the limitation.
@iverase iverase added :Analytics/Geo Indexing, search aggregations of geo points and shapes backport v7.7.0 labels Mar 19, 2020
@iverase iverase merged commit 4f1b2fd into elastic:7.x Mar 19, 2020
@iverase iverase deleted the backportGeoShapeDistance branch March 19, 2020 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes backport v7.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant