Class RescoreQuery
java.lang.Object
org.opensearch.client.opensearch.core.search.RescoreQuery
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<RescoreQuery.Builder,RescoreQuery>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class RescoreQuery
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<RescoreQuery.Builder,RescoreQuery>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RescoreQuery> Json deserializer forRescoreQuery -
Method Summary
Modifier and TypeMethodDescriptionstatic RescoreQuery.Builderbuilder()booleaninthashCode()static RescoreQueryfinal FloatThe relative importance of the original query as compared to the rescore query.final QueryRequired - API name:rescore_queryfinal FloatThe relative importance of the rescore query as compared to the original query.final ScoreModeAPI name:score_modevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forRescoreQuery
-
-
Method Details
-
of
-
queryWeight
The relative importance of the original query as compared to the rescore query.API name:
query_weight -
rescoreQuery
Required - API name:rescore_query -
rescoreQueryWeight
The relative importance of the rescore query as compared to the original query.API name:
rescore_query_weight -
scoreMode
API name:score_mode -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RescoreQuery.Builder,RescoreQuery> - Returns:
- a new builder instance.
-
builder
-
setupRescoreQueryDeserializer
-
hashCode
public int hashCode() -
equals
-