GeoDistanceQuery
Attributes
- Graph
-
- Supertypes
Members list
Value members
Abstract methods
Sets the distanceType
parameter for the zio.elasticsearch.query.GeoDistanceQuery. Defines how to compute the distance.
Sets the distanceType
parameter for the zio.elasticsearch.query.GeoDistanceQuery. Defines how to compute the distance.
Value parameters
- value
-
defines how to compute the distance
- zio.elasticsearch.query.DistanceType.Arc: Default algorithm
- zio.elasticsearch.query.DistanceType.Plane: Faster, but inaccurate on long distances and close to the poles
Attributes
- Returns
-
an instance of zio.elasticsearch.query.GeoDistanceQuery enriched with the
distanceType
parameter.
Sets the queryName
parameter for the zio.elasticsearch.query.GeoDistanceQuery. Represents the optional name field to identify the query
Sets the queryName
parameter for the zio.elasticsearch.query.GeoDistanceQuery. Represents the optional name field to identify the query
Value parameters
- value
-
the String value to represent the name field
Attributes
- Returns
-
an instance of zio.elasticsearch.query.GeoDistanceQuery enriched with the
queryName
parameter.
Sets the validationMethod
parameter for the zio.elasticsearch.query.GeoDistanceQuery. Defines handling of incorrect coordinates.
Sets the validationMethod
parameter for the zio.elasticsearch.query.GeoDistanceQuery. Defines handling of incorrect coordinates.
Value parameters
- value
-
defines how to handle invalid latitude nad longitude:
- zio.elasticsearch.query.ValidationMethod.Strict: Default method
- zio.elasticsearch.query.ValidationMethod.IgnoreMalformed: Accepts geo points with invalid latitude or longitude
- zio.elasticsearch.query.ValidationMethod.Coerce: Additionally try and infer correct coordinates
Attributes
- Returns
-
an instance of zio.elasticsearch.query.GeoDistanceQuery enriched with the
validationMethod
parameter.