GeoDistance

October 22, 2025 ยท View on GitHub

Object to perform geo-distance based filtering on queries

Properties

NameTypeDescriptionNotes
locationAnchorGeoDistanceLocationAnchor[optional]
locationSourceStringField name in the document that contains location data[optional]
distanceTypeDistanceTypeEnumAlgorithm used to calculate the distance[optional]
distanceStringThe distance from the anchor point to filter results by[optional]

Enum: DistanceTypeEnum

NameValue
ADAPTIVE"adaptive"
HAVERSINE"haversine"