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.Builder
caseInsensitive
(Boolean value) Whentrue
, the provided search string is matched against index terms without case sensitivity.final TermsEnumRequest.Builder
Required - The string to match at the start of indexed terms.final TermsEnumRequest.Builder
Required - A comma-separated list of data streams, indices, and index aliases to search.final TermsEnumRequest.Builder
indexFilter
(Query value) Filter an index shard if the provided query rewrites tomatch_none
.final TermsEnumRequest.Builder
indexFilter
(QueryVariant value) Filter an index shard if the provided query rewrites tomatch_none
.final TermsEnumRequest.Builder
Filter an index shard if the provided query rewrites tomatch_none
.final TermsEnumRequest.Builder
searchAfter
(String value) The string after which terms in the index should be returned.protected TermsEnumRequest.Builder
self()
final TermsEnumRequest.Builder
The number of matching terms to return.final TermsEnumRequest.Builder
The string to match at the start of indexed terms.final TermsEnumRequest.Builder
The maximum length of time to spend collecting results.final TermsEnumRequest.Builder
The maximum length of time to spend collecting results.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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_after
parameter 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 thecomplete
flag set tofalse
in 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 thecomplete
flag set tofalse
in the response and the results may be partial or empty.API name:
timeout
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<TermsEnumRequest.Builder>
-
build
Builds aTermsEnumRequest
.- Specified by:
build
in interfaceObjectBuilder<TermsEnumRequest>
- Throws:
NullPointerException
- if some of the required fields are null.
-