Class ScriptScoreFunction
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.ScoreFunctionBase
co.elastic.clients.elasticsearch._types.query_dsl.ScriptScoreFunction
- All Implemented Interfaces:
FunctionScoreVariant
,JsonpSerializable
@JsonpDeserializable public class ScriptScoreFunction extends ScoreFunctionBase implements FunctionScoreVariant
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScriptScoreFunction.Builder
Builder forScriptScoreFunction
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.query_dsl.ScoreFunctionBase
ScoreFunctionBase.AbstractBuilder<BuilderT extends ScoreFunctionBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ScriptScoreFunction>
_DESERIALIZER
Json deserializer forScriptScoreFunction
-
Method Summary
Modifier and Type Method Description FunctionScore.Kind
_functionScoreKind()
FunctionScore variant kind.static ScriptScoreFunction
of(java.util.function.Function<ScriptScoreFunction.Builder,ObjectBuilder<ScriptScoreFunction>> fn)
Script
script()
Required - API name:script
protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupScriptScoreFunctionDeserializer(ObjectDeserializer<ScriptScoreFunction.Builder> op)
Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.ScoreFunctionBase
filter, serialize, setupScoreFunctionBaseDeserializer, weight
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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(java.util.function.Function<ScriptScoreFunction.Builder,ObjectBuilder<ScriptScoreFunction>> fn) -
_functionScoreKind
FunctionScore variant kind.- Specified by:
_functionScoreKind
in interfaceFunctionScoreVariant
-
script
Required - API name:script
-
serializeInternal
- Overrides:
serializeInternal
in classScoreFunctionBase
-
setupScriptScoreFunctionDeserializer
protected static void setupScriptScoreFunctionDeserializer(ObjectDeserializer<ScriptScoreFunction.Builder> op)
-