Class ScoreFunctionBase
- java.lang.Object
-
- org.opensearch.client.opensearch._types.query_dsl.ScoreFunctionBase
-
- All Implemented Interfaces:
JsonpSerializable
- Direct Known Subclasses:
DecayFunctionBase,FieldValueFactorScoreFunction,RandomScoreFunction,ScriptScoreFunction
public abstract class ScoreFunctionBase extends java.lang.Object implements JsonpSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classScoreFunctionBase.AbstractBuilder<BuilderT extends ScoreFunctionBase.AbstractBuilder<BuilderT>>
-
Constructor Summary
Constructors Modifier Constructor Description protectedScoreFunctionBase(ScoreFunctionBase.AbstractBuilder<?> builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Queryfilter()API name:filtervoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static <BuilderT extends ScoreFunctionBase.AbstractBuilder<BuilderT>>
voidsetupScoreFunctionBaseDeserializer(ObjectDeserializer<BuilderT> op)java.lang.Doubleweight()API name:weight
-
-
-
Constructor Detail
-
ScoreFunctionBase
protected ScoreFunctionBase(ScoreFunctionBase.AbstractBuilder<?> builder)
-
-
Method Detail
-
filter
@Nullable public final Query filter()
API name:filter
-
weight
@Nullable public final java.lang.Double weight()
API name:weight
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupScoreFunctionBaseDeserializer
protected static <BuilderT extends ScoreFunctionBase.AbstractBuilder<BuilderT>> void setupScoreFunctionBaseDeserializer(ObjectDeserializer<BuilderT> op)
-
-