Class TermsQuery
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.TermsQuery
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,QueryVariant,ToCopyableBuilder<TermsQuery.Builder,TermsQuery>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class TermsQuery
extends Object
implements QueryVariant, PlainJsonSerializable, ToCopyableBuilder<TermsQuery.Builder,TermsQuery>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TermsQuery> Json deserializer forTermsQuery -
Method Summary
Modifier and TypeMethodDescriptionQueryvariant kind.final Floatboost()API name:booststatic TermsQuery.Builderbuilder()booleanfinal Stringfield()Required -inthashCode()final Stringname()API name:_namestatic TermsQueryvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal TermsQueryFieldterms()Required -Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final TermsQueryValueTypeSpecifies the types of values used for filtering.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.opensearch._types.query_dsl.QueryVariant
toQueryMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forTermsQuery
-
-
Method Details
-
of
-
_queryKind
Queryvariant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
boost
API name:boost -
field
Required - -
name
API name:_name -
terms
Required - -
valueType
Specifies the types of values used for filtering. Valid values aredefaultandbitmap. Default isdefault.API name:
value_type -
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<TermsQuery.Builder,TermsQuery> - Returns:
- a new builder instance.
-
builder
-
setupTermsQueryDeserializer
-
hashCode
public int hashCode() -
equals
-