Support spatial distance search in ES|QL (ST_DWITHIN, ST_DISTANCE) #108212
Labels
:Analytics/ES|QL
AKA ESQL
:Analytics/Geo
Indexing, search aggregations of geo points and shapes
>enhancement
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Description
The Elasticsearch
_search
API supports distance filtering and sorting:In PostGIS there are two related functions:
ST_DWITHIN
for filtering by distanceST_DISTANCE
for calculating a distance, also usable for sortingThese features can be implemented in ES|QL through two overlapping OGC compliant functions:
boolean ST_DWITHIN(geomA, geomB, distance)
for filtering by distancefloat ST_DISTANCE(geomA, geomB)
for calculating a distance, filtering and sortingSorting example:
See the PostGIS documentation for inspiration:
Tasks
The text was updated successfully, but these errors were encountered: