Class GeoDistanceQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
co.elastic.clients.elasticsearch._types.query_dsl.GeoDistanceQuery
- All Implemented Interfaces:
QueryVariant
,JsonpSerializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<GeoDistanceQuery>
Json deserializer forGeoDistanceQuery
-
Method Summary
Modifier and TypeMethodDescriptionQuery variant kind.final String
distance()
Required - The radius of the circle centred on the specified location.final GeoDistanceType
How to compute the distance.final String
field()
Required -final GeoLocation
location()
Required -static GeoDistanceQuery
protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final GeoValidationMethod
Set toIGNORE_MALFORMED
to accept geo points with invalid latitude or longitude.Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
boost, queryName, serialize, setupQueryBaseDeserializer, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch._types.query_dsl.QueryVariant
_toQuery
-
Field Details
-
_DESERIALIZER
Json deserializer forGeoDistanceQuery
-
-
Method Details
-
of
public static GeoDistanceQuery of(Function<GeoDistanceQuery.Builder, ObjectBuilder<GeoDistanceQuery>> fn) -
_queryKind
Query variant kind.- Specified by:
_queryKind
in interfaceQueryVariant
-
field
Required - -
location
Required - -
distance
Required - The radius of the circle centred on the specified location. Points which fall into this circle are considered to be matches.API name:
distance
-
distanceType
How to compute the distance. Set toplane
for a faster calculation that's inaccurate on long distances and close to the poles.API name:
distance_type
-
validationMethod
Set toIGNORE_MALFORMED
to accept geo points with invalid latitude or longitude. Set toCOERCE
to also try to infer correct latitude or longitude.API name:
validation_method
-
serializeInternal
- Overrides:
serializeInternal
in classQueryBase
-
setupGeoDistanceQueryDeserializer
protected static void setupGeoDistanceQueryDeserializer(ObjectDeserializer<GeoDistanceQuery.Builder> op)
-