Class Rescore
java.lang.Object
co.elastic.clients.elasticsearch.core.search.Rescore
- All Implemented Interfaces:
JsonpSerializable,OpenTaggedUnion<Rescore.Kind,,Object> TaggedUnion<Rescore.Kind,Object>
@JsonpDeserializable
public class Rescore
extends Object
implements OpenTaggedUnion<Rescore.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_custom()Get the custom plugin-defined variant value.final StringGet the actual kind when_kind()equalsRescore.Kind._Custom(plugin-defined variant).final Object_get()booleanIs this a customRescoredefined by a plugin?final Rescore.Kind_kind()Get the of the kind of variant held by this object.booleanIs this variant instance of kindlearning_to_rank?booleanisQuery()Is this variant instance of kindquery?Get thelearning_to_rankvariant value.static Rescorequery()Get thequeryvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()final IntegerAPI name:window_size
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Rescore
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Rescore.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Rescore.Kind,Object>
-
of
-
windowSize
API name:window_size -
isQuery
public boolean isQuery()Is this variant instance of kindquery? -
query
Get thequeryvariant value.- Throws:
IllegalStateException- if the current variant is not of thequerykind.
-
isLearningToRank
public boolean isLearningToRank()Is this variant instance of kindlearning_to_rank? -
learningToRank
Get thelearning_to_rankvariant value.- Throws:
IllegalStateException- if the current variant is not of thelearning_to_rankkind.
-
_isCustom
public boolean _isCustom()Is this a customRescoredefined by a plugin? -
_customKind
Get the actual kind when_kind()equalsRescore.Kind._Custom(plugin-defined variant).- Specified by:
_customKindin interfaceOpenTaggedUnion<Rescore.Kind,Object>
-
_custom
Get the custom plugin-defined variant value.- Throws:
IllegalStateException- if the current variant is notRescore.Kind._Custom.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupRescoreDeserializer
-