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 ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<GeoDistanceQuery>Json deserializer forGeoDistanceQuery -
Method Summary
Modifier and TypeMethodDescriptionQuery variant kind.final Stringdistance()Required - The radius of the circle centred on the specified location.final GeoDistanceTypeHow to compute the distance.final Stringfield()Required -final BooleanSet totrueto ignore an unmapped field and not match any documents for this query.final GeoLocationlocation()Required -static GeoDistanceQueryprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal GeoValidationMethodSet toIGNORE_MALFORMEDto accept geo points with invalid latitude or longitude.Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
boost, queryName, serialize, setupQueryBaseDeserializer, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
_queryKindin 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 toplanefor a faster calculation that's inaccurate on long distances and close to the poles.API name:
distance_type -
validationMethod
Set toIGNORE_MALFORMEDto accept geo points with invalid latitude or longitude. Set toCOERCEto also try to infer correct latitude or longitude.API name:
validation_method -
ignoreUnmapped
Set totrueto ignore an unmapped field and not match any documents for this query. Set tofalseto throw an exception if the field is not mapped.API name:
ignore_unmapped -
serializeInternal
- Overrides:
serializeInternalin classQueryBase
-
setupGeoDistanceQueryDeserializer
protected static void setupGeoDistanceQueryDeserializer(ObjectDeserializer<GeoDistanceQuery.Builder> op)
-