Skip to content

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