Class RegexpQuery.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase.AbstractBuilder<RegexpQuery.Builder>
co.elastic.clients.elasticsearch._types.query_dsl.RegexpQuery.Builder
- All Implemented Interfaces:
WithJson<RegexpQuery.Builder>,ObjectBuilder<RegexpQuery>
- Enclosing class:
- RegexpQuery
public static class RegexpQuery.Builder
extends QueryBase.AbstractBuilder<RegexpQuery.Builder>
implements ObjectBuilder<RegexpQuery>
Builder for
RegexpQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aRegexpQuery.final RegexpQuery.BuildercaseInsensitive(Boolean value) Allows case insensitive matching of the regular expression value with the indexed field values when set totrue.final RegexpQuery.BuilderRequired - The target fieldfinal RegexpQuery.BuilderEnables optional operators for the regular expression.final RegexpQuery.BuildermaxDeterminizedStates(Integer value) Maximum number of automaton states required for the query.final RegexpQuery.BuilderMethod used to rewrite the query.protected RegexpQuery.Builderself()final RegexpQuery.BuilderRequired - Regular expression for terms you wish to find in the provided field.Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase.AbstractBuilder
boost, queryNameMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
field
Required - The target field -
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 -
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
Method used to rewrite the query.API name:
rewrite -
value
Required - Regular expression for terms you wish to find in the provided field.API name:
value -
self
- Specified by:
selfin classQueryBase.AbstractBuilder<RegexpQuery.Builder>
-
build
Builds aRegexpQuery.- Specified by:
buildin interfaceObjectBuilder<RegexpQuery>- Throws:
NullPointerException- if some of the required fields are null.
-