Class TermsEnumRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<TermsEnumRequest.Builder>
co.elastic.clients.elasticsearch.core.TermsEnumRequest.Builder
- All Implemented Interfaces:
WithJson<TermsEnumRequest.Builder>,ObjectBuilder<TermsEnumRequest>
- Enclosing class:
- TermsEnumRequest
public static class TermsEnumRequest.Builder
extends RequestBase.AbstractBuilder<TermsEnumRequest.Builder>
implements ObjectBuilder<TermsEnumRequest>
Builder for
TermsEnumRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTermsEnumRequest.final TermsEnumRequest.BuildercaseInsensitive(Boolean value) Whentrue, the provided search string is matched against index terms without case sensitivity.final TermsEnumRequest.BuilderRequired - The string to match at the start of indexed terms.final TermsEnumRequest.BuilderRequired - A comma-separated list of data streams, indices, and index aliases to search.final TermsEnumRequest.BuilderindexFilter(Query value) Filter an index shard if the provided query rewrites tomatch_none.final TermsEnumRequest.BuilderindexFilter(QueryVariant value) Filter an index shard if the provided query rewrites tomatch_none.final TermsEnumRequest.BuilderFilter an index shard if the provided query rewrites tomatch_none.final TermsEnumRequest.BuildersearchAfter(String value) The string after which terms in the index should be returned.protected TermsEnumRequest.Builderself()final TermsEnumRequest.BuilderThe number of matching terms to return.final TermsEnumRequest.BuilderThe string to match at the start of indexed terms.final TermsEnumRequest.BuilderThe maximum length of time to spend collecting results.final TermsEnumRequest.BuilderThe maximum length of time to spend collecting results.Methods 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
-
caseInsensitive
Whentrue, the provided search string is matched against index terms without case sensitivity.API name:
case_insensitive -
field
Required - The string to match at the start of indexed terms. If not provided, all terms in the field are considered.API name:
field -
index
Required - A comma-separated list of data streams, indices, and index aliases to search. Wildcard (*) expressions are supported. To search all data streams or indices, omit this parameter or use*or_all.API name:
index -
indexFilter
Filter an index shard if the provided query rewrites tomatch_none.API name:
index_filter -
indexFilter
Filter an index shard if the provided query rewrites tomatch_none.API name:
index_filter -
indexFilter
Filter an index shard if the provided query rewrites tomatch_none.API name:
index_filter -
searchAfter
The string after which terms in the index should be returned. It allows for a form of pagination if the last result from one request is passed as thesearch_afterparameter for a subsequent request.API name:
search_after -
size
The number of matching terms to return.API name:
size -
string
The string to match at the start of indexed terms. If it is not provided, all terms in the field are considered.info The prefix string cannot be larger than the largest possible keyword value, which is Lucene's term byte-length limit of 32766.
API name:
string -
timeout
The maximum length of time to spend collecting results. If the timeout is exceeded thecompleteflag set tofalsein the response and the results may be partial or empty.API name:
timeout -
timeout
The maximum length of time to spend collecting results. If the timeout is exceeded thecompleteflag set tofalsein the response and the results may be partial or empty.API name:
timeout -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<TermsEnumRequest.Builder>
-
build
Builds aTermsEnumRequest.- Specified by:
buildin interfaceObjectBuilder<TermsEnumRequest>- Throws:
NullPointerException- if some of the required fields are null.
-