Class ScriptScoreFunction
- java.lang.Object
-
- org.opensearch.client.opensearch._types.query_dsl.ScoreFunctionBase
-
- org.opensearch.client.opensearch._types.query_dsl.ScriptScoreFunction
-
- All Implemented Interfaces:
JsonpSerializable
,PlainJsonSerializable
,FunctionScoreVariant
@JsonpDeserializable public class ScriptScoreFunction extends ScoreFunctionBase implements FunctionScoreVariant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScriptScoreFunction.Builder
Builder forScriptScoreFunction
.-
Nested classes/interfaces inherited from class org.opensearch.client.opensearch._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
All Methods Static Methods Instance Methods Concrete Methods 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)
ScriptScoreFunction.Builder
toBuilder()
-
Methods inherited from class org.opensearch.client.opensearch._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 org.opensearch.client.opensearch._types.query_dsl.FunctionScoreVariant
_toFunctionScore
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<ScriptScoreFunction> _DESERIALIZER
Json deserializer forScriptScoreFunction
-
-
Method Detail
-
of
public static ScriptScoreFunction of(java.util.function.Function<ScriptScoreFunction.Builder,ObjectBuilder<ScriptScoreFunction>> fn)
-
_functionScoreKind
public FunctionScore.Kind _functionScoreKind()
FunctionScore variant kind.- Specified by:
_functionScoreKind
in interfaceFunctionScoreVariant
-
script
public final Script script()
Required - API name:script
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
- Overrides:
serializeInternal
in classScoreFunctionBase
-
toBuilder
public ScriptScoreFunction.Builder toBuilder()
-
setupScriptScoreFunctionDeserializer
protected static void setupScriptScoreFunctionDeserializer(ObjectDeserializer<ScriptScoreFunction.Builder> op)
-
-