Class PrefixQuery.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase.AbstractBuilder<PrefixQuery.Builder>
co.elastic.clients.elasticsearch._types.query_dsl.PrefixQuery.Builder
- All Implemented Interfaces:
WithJson<PrefixQuery.Builder>,ObjectBuilder<PrefixQuery>
- Enclosing class:
- PrefixQuery
public static class PrefixQuery.Builder
extends QueryBase.AbstractBuilder<PrefixQuery.Builder>
implements ObjectBuilder<PrefixQuery>
Builder for
PrefixQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPrefixQuery.final PrefixQuery.BuildercaseInsensitive(Boolean value) Allows ASCII case insensitive matching of the value with the indexed field values when set totrue.final PrefixQuery.BuilderRequired - The target fieldfinal PrefixQuery.BuilderMethod used to rewrite the query.protected PrefixQuery.Builderself()final PrefixQuery.BuilderRequired - Beginning characters of 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 -
rewrite
Method used to rewrite the query.API name:
rewrite -
value
Required - Beginning characters of terms you wish to find in the provided field.API name:
value -
caseInsensitive
Allows ASCII case insensitive matching of the value with the indexed field values when set totrue. Default isfalsewhich means the case sensitivity of matching depends on the underlying field’s mapping.API name:
case_insensitive -
self
- Specified by:
selfin classQueryBase.AbstractBuilder<PrefixQuery.Builder>
-
build
Builds aPrefixQuery.- Specified by:
buildin interfaceObjectBuilder<PrefixQuery>- Throws:
NullPointerException- if some of the required fields are null.
-