Class FieldValueFactorScoreFunction
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.FieldValueFactorScoreFunction
- All Implemented Interfaces:
FunctionScoreVariant,JsonpSerializable
@JsonpDeserializable
public class FieldValueFactorScoreFunction
extends Object
implements FunctionScoreVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<FieldValueFactorScoreFunction>Json deserializer forFieldValueFactorScoreFunction -
Method Summary
Modifier and TypeMethodDescriptionFunctionScore variant kind.final Doublefactor()Optional factor to multiply the field value with.final Stringfield()Required - Field to be extracted from the document.final Doublemissing()Value used if the document doesn’t have that field.final FieldValueFactorModifiermodifier()Modifier to apply to the field value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupFieldValueFactorScoreFunctionDeserializer(ObjectDeserializer<FieldValueFactorScoreFunction.Builder> op) toString()Methods 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.FunctionScoreVariant
_toFunctionScore
-
Field Details
-
_DESERIALIZER
Json deserializer forFieldValueFactorScoreFunction
-
-
Method Details
-
of
-
_functionScoreKind
FunctionScore variant kind.- Specified by:
_functionScoreKindin interfaceFunctionScoreVariant
-
field
Required - Field to be extracted from the document.API name:
field -
factor
Optional factor to multiply the field value with.API name:
factor -
missing
Value used if the document doesn’t have that field. The modifier and factor are still applied to it as though it were read from the document.API name:
missing -
modifier
Modifier to apply to the field value.API name:
modifier -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupFieldValueFactorScoreFunctionDeserializer
protected static void setupFieldValueFactorScoreFunctionDeserializer(ObjectDeserializer<FieldValueFactorScoreFunction.Builder> op)
-