geo_distance query options mismatch #108823
Labels
:Analytics/Geo
Indexing, search aggregations of geo points and shapes
>docs
General docs changes
>non-issue
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Team:Docs
Meta label for docs team
The documentation for the geo_distance query claims it supports the following options:
Looking at the code there is parsing support for much more, so we did a code review to see what actually happens for the features that are documented and for undocumented, but coded options as well:
queryName
boost
unit
specified below (default meters)meters
(default)arc
(default) orplane
arc
orplane
Circle2D
uses haversine distance internally, which is whatarc
impliestrue
and field is not mapped, useMatchNoDocsQuery
, else throw exceptionFrom this analysis it would seem we should:
distance_type
(silently ignored, will bearc
no matter what the user puts here)unit
(will result in incorrect answers for anything other thanmeters
)ignore_unmapped
boost
The text was updated successfully, but these errors were encountered: