Class ScoreFunctionBase
java.lang.Object
co.elastic.clients.elasticsearch._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
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ScoreFunctionBase.AbstractBuilder<BuilderT extends ScoreFunctionBase.AbstractBuilder<BuilderT>>
-
Constructor Summary
Constructors Modifier Constructor Description protected
ScoreFunctionBase(ScoreFunctionBase.AbstractBuilder<?> builder)
-
Method Summary
Modifier and Type Method Description Query
filter()
API name:filter
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static <BuilderT extends ScoreFunctionBase.AbstractBuilder<BuilderT>>
voidsetupScoreFunctionBaseDeserializer(ObjectDeserializer<BuilderT> op)
java.lang.Double
weight()
API name:weight
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ScoreFunctionBase
-
-
Method Details
-
filter
API name:filter
-
weight
@Nullable public final java.lang.Double weight()API name:weight
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupScoreFunctionBaseDeserializer
protected static <BuilderT extends ScoreFunctionBase.AbstractBuilder<BuilderT>> void setupScoreFunctionBaseDeserializer(ObjectDeserializer<BuilderT> op)
-