Class ScriptScoreFunction
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.ScriptScoreFunction
- All Implemented Interfaces:
FunctionScoreVariant,JsonpSerializable
@JsonpDeserializable
public class ScriptScoreFunction
extends Object
implements FunctionScoreVariant, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ScriptScoreFunction>Json deserializer forScriptScoreFunction -
Method Summary
Modifier and TypeMethodDescriptionFunctionScore variant kind.static ScriptScoreFunctionfinal Scriptscript()Required - API name:scriptvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()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 forScriptScoreFunction
-
-
Method Details
-
of
public static ScriptScoreFunction of(Function<ScriptScoreFunction.Builder, ObjectBuilder<ScriptScoreFunction>> fn) -
_functionScoreKind
FunctionScore variant kind.- Specified by:
_functionScoreKindin interfaceFunctionScoreVariant
-
script
Required - API name:script -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupScriptScoreFunctionDeserializer
protected static void setupScriptScoreFunctionDeserializer(ObjectDeserializer<ScriptScoreFunction.Builder> op)
-