Class FieldValueFactorScoreFunction
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.FieldValueFactorScoreFunction
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,FunctionScoreVariant,ToCopyableBuilder<FieldValueFactorScoreFunction.Builder,FieldValueFactorScoreFunction>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class FieldValueFactorScoreFunction
extends Object
implements FunctionScoreVariant, PlainJsonSerializable, ToCopyableBuilder<FieldValueFactorScoreFunction.Builder,FieldValueFactorScoreFunction>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<FieldValueFactorScoreFunction> Json deserializer forFieldValueFactorScoreFunction -
Method Summary
Modifier and TypeMethodDescriptionFunctionScorevariant kind.builder()booleanfinal Floatfactor()Optional factor to multiply the field value with.final Stringfield()Required - API name:fieldinthashCode()final Doublemissing()Value used if the document doesn't have that field.final FieldValueFactorModifiermodifier()API name:modifiervoidserialize(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) Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.opensearch._types.query_dsl.FunctionScoreVariant
toFunctionScoreMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forFieldValueFactorScoreFunction
-
-
Method Details
-
of
-
_functionScoreKind
FunctionScorevariant kind.- Specified by:
_functionScoreKindin interfaceFunctionScoreVariant
-
factor
Optional factor to multiply the field value with.API name:
factor -
field
Required - API name:field -
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
API name:modifier -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<FieldValueFactorScoreFunction.Builder,FieldValueFactorScoreFunction> - Returns:
- a new builder instance.
-
builder
-
setupFieldValueFactorScoreFunctionDeserializer
protected static void setupFieldValueFactorScoreFunctionDeserializer(ObjectDeserializer<FieldValueFactorScoreFunction.Builder> op) -
hashCode
public int hashCode() -
equals
-