Class BoostingQuery
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.QueryBase
org.opensearch.client.opensearch._types.query_dsl.BoostingQuery
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,QueryVariant,ToCopyableBuilder<BoostingQuery.Builder,BoostingQuery>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class BoostingQuery
extends QueryBase
implements QueryVariant, ToCopyableBuilder<BoostingQuery.Builder,BoostingQuery>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<BoostingQuery> Json deserializer forBoostingQuery -
Method Summary
Modifier and TypeMethodDescriptionQueryvariant kind.static BoostingQuery.Builderbuilder()booleaninthashCode()final Querynegative()Required - API name:negativefinal floatRequired - Floating point number between 0 and 1.0 used to decrease the relevance scores of documents matching thenegativequery.static BoostingQueryfinal Querypositive()Required - API name:positiveprotected 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 org.opensearch.client.opensearch._types.query_dsl.QueryBase
boost, queryName, serialize, setupQueryBaseDeserializerMethods 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.opensearch._types.query_dsl.QueryVariant
toQueryMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forBoostingQuery
-
-
Method Details
-
of
-
_queryKind
Queryvariant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
negative
Required - API name:negative -
negativeBoost
public final float negativeBoost()Required - Floating point number between 0 and 1.0 used to decrease the relevance scores of documents matching thenegativequery.API name:
negative_boost -
positive
Required - API name:positive -
serializeInternal
- Overrides:
serializeInternalin classQueryBase
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<BoostingQuery.Builder,BoostingQuery> - Returns:
- a new builder instance.
-
builder
-
setupBoostingQueryDeserializer
-
hashCode
public int hashCode() -
equals
-