elastic / elasticsearch

Free and Open, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
68.55k stars 24.35k forks source link

Support Lucene push-down for sorting by distance with `ST_DISTANCE` #109973

Open craigtaverner opened 2 weeks ago

craigtaverner commented 2 weeks ago

Based on the specification at https://github.com/elastic/elasticsearch/issues/108212, we have implemented the ST_DISTANCE function in the PR at https://github.com/elastic/elasticsearch/pull/108764.

However, this does not perform any Lucene pushdown when sorting by distance and so will run slow for larger datasets. We need to implement a high-performance sort, presumably by pushing down to _geo_distance sorting.

elasticsearchmachine commented 2 weeks ago

Pinging @elastic/es-analytical-engine (Team:Analytics)