Class TermQuery
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.QueryBase
org.opensearch.client.opensearch._types.query_dsl.TermQuery
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,QueryVariant,ToCopyableBuilder<TermQuery.Builder,TermQuery>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class TermQuery
extends QueryBase
implements QueryVariant, ToCopyableBuilder<TermQuery.Builder,TermQuery>
-
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<TermQuery> Json deserializer forTermQuery -
Method Summary
Modifier and TypeMethodDescriptionQueryvariant kind.static TermQuery.Builderbuilder()final BooleanAllows ASCII case insensitive matching of the value with the indexed field values when set totrue.booleanfinal Stringfield()Required - The target fieldinthashCode()static TermQueryprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final FieldValuevalue()Required - API name:valueMethods 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 forTermQuery
-
-
Method Details
-
of
-
_queryKind
Queryvariant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
caseInsensitive
Allows ASCII case insensitive matching of the value with the indexed field values when set totrue. Whenfalse, the case sensitivity of matching depends on the underlying field's mapping.API name:
case_insensitive -
field
Required - The target field -
value
Required - API name:value -
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<TermQuery.Builder,TermQuery> - Returns:
- a new builder instance.
-
builder
-
setupTermQueryDeserializer
-
hashCode
public int hashCode() -
equals
-