Class RegexpQuery
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.QueryBase
org.opensearch.client.opensearch._types.query_dsl.RegexpQuery
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,QueryVariant,ToCopyableBuilder<RegexpQuery.Builder,RegexpQuery>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class RegexpQuery
extends QueryBase
implements QueryVariant, ToCopyableBuilder<RegexpQuery.Builder,RegexpQuery>
-
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<RegexpQuery> Json deserializer forRegexpQuery -
Method Summary
Modifier and TypeMethodDescriptionQueryvariant kind.static RegexpQuery.Builderbuilder()final BooleanAllows case insensitive matching of the regular expression value with the indexed field values when set totrue.booleanfinal Stringfield()Required - The target fieldfinal Stringflags()Enables optional operators for the regular expression.inthashCode()final IntegerMaximum number of automaton states required for the query.static RegexpQueryfinal Stringrewrite()API name:rewriteprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final Stringvalue()Required - Regular expression for terms you wish to find in the provided field.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 forRegexpQuery
-
-
Method Details
-
of
-
_queryKind
Queryvariant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
caseInsensitive
Allows case insensitive matching of the regular expression value with the indexed field values when set totrue. Whenfalse, case sensitivity of matching depends on the underlying field's mapping.API name:
case_insensitive -
field
Required - The target field -
flags
Enables optional operators for the regular expression.API name:
flags -
maxDeterminizedStates
Maximum number of automaton states required for the query.API name:
max_determinized_states -
rewrite
API name:rewrite -
value
Required - Regular expression for terms you wish to find in the provided field.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<RegexpQuery.Builder,RegexpQuery> - Returns:
- a new builder instance.
-
builder
-
setupRegexpQueryDeserializer
-
hashCode
public int hashCode() -
equals
-