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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<FieldValueFactorScoreFunction>
Json deserializer forFieldValueFactorScoreFunction
-
Method Summary
Modifier and TypeMethodDescriptionFunctionScore variant kind.final Double
factor()
Optional factor to multiply the field value with.final String
field()
Required - Field to be extracted from the document.final Double
missing()
Value used if the document doesn’t have that field.final FieldValueFactorModifier
modifier()
Modifier to apply to the field value.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
setupFieldValueFactorScoreFunctionDeserializer
(ObjectDeserializer<FieldValueFactorScoreFunction.Builder> op) 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.FunctionScoreVariant
_toFunctionScore
-
Field Details
-
_DESERIALIZER
Json deserializer forFieldValueFactorScoreFunction
-
-
Method Details
-
of
-
_functionScoreKind
FunctionScore variant kind.- Specified by:
_functionScoreKind
in 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupFieldValueFactorScoreFunctionDeserializer
protected static void setupFieldValueFactorScoreFunctionDeserializer(ObjectDeserializer<FieldValueFactorScoreFunction.Builder> op)
-