Class DistanceFeatureQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
co.elastic.clients.elasticsearch._types.query_dsl.DistanceFeatureQuery
- 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<DistanceFeatureQuery>Json deserializer forDistanceFeatureQuery -
Method Summary
Modifier and TypeMethodDescriptionQuery variant kind.final Stringfield()Required - Name of the field used to calculate distances.static DistanceFeatureQueryfinal JsonDataorigin()Required - Date or point of origin used to calculate distances.final JsonDatapivot()Required - Distance from theoriginat which relevance scores receive half of theboostvalue.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidMethods 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 forDistanceFeatureQuery
-
-
Method Details
-
of
public static DistanceFeatureQuery of(Function<DistanceFeatureQuery.Builder, ObjectBuilder<DistanceFeatureQuery>> fn) -
_queryKind
Query variant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
origin
Required - Date or point of origin used to calculate distances. If thefieldvalue is adateordate_nanosfield, theoriginvalue must be a date. Date Math, such asnow-1h, is supported. If the field value is ageo_pointfield, theoriginvalue must be a geopoint.API name:
origin -
pivot
Required - Distance from theoriginat which relevance scores receive half of theboostvalue. If thefieldvalue is adateordate_nanosfield, thepivotvalue must be a time unit, such as1hor10d. If thefieldvalue is ageo_pointfield, thepivotvalue must be a distance unit, such as1kmor12m.API name:
pivot -
field
Required - Name of the field used to calculate distances. This field must meet the following criteria: be adate,date_nanosorgeo_pointfield; have anindexmapping parameter value oftrue, which is the default; have andoc_valuesmapping parameter value oftrue, which is the default.API name:
field -
serializeInternal
- Overrides:
serializeInternalin classQueryBase
-
setupDistanceFeatureQueryDeserializer
protected static void setupDistanceFeatureQueryDeserializer(ObjectDeserializer<DistanceFeatureQuery.Builder> op)
-