Class TermsEnumRequest.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.core.TermsEnumRequest.Builder
-
- All Implemented Interfaces:
ObjectBuilder<TermsEnumRequest>
- Enclosing class:
- TermsEnumRequest
public static class TermsEnumRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<TermsEnumRequest>
Builder forTermsEnumRequest.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TermsEnumRequestbuild()Builds aTermsEnumRequest.TermsEnumRequest.BuildercaseInsensitive(java.lang.Boolean value)When true the provided search string is matched against index terms without case sensitivity.TermsEnumRequest.Builderfield(java.lang.String value)Required - The string to match at the start of indexed terms.TermsEnumRequest.Builderindex(java.lang.String value)Required - Comma-separated list of data streams, indices, and index aliases to search.TermsEnumRequest.BuilderindexFilter(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)Allows to filter an index shard if the provided query rewrites to match_none.TermsEnumRequest.BuilderindexFilter(Query value)Allows to filter an index shard if the provided query rewrites to match_none.TermsEnumRequest.BuildersearchAfter(java.lang.String value)API name:search_afterTermsEnumRequest.Buildersize(java.lang.Integer value)How many matching terms to return.TermsEnumRequest.Builderstring(java.lang.String value)The string after which terms in the index should be returned.TermsEnumRequest.Buildertimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)The maximum length of time to spend collecting results.TermsEnumRequest.Buildertimeout(Time value)The maximum length of time to spend collecting results.-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
caseInsensitive
public final TermsEnumRequest.Builder caseInsensitive(@Nullable java.lang.Boolean value)
When true the provided search string is matched against index terms without case sensitivity.API name:
case_insensitive
-
field
public final TermsEnumRequest.Builder field(java.lang.String value)
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
public final TermsEnumRequest.Builder index(java.lang.String value)
Required - Comma-separated list of data streams, indices, and index aliases to search. Wildcard (*) expressions are supported.API name:
index
-
indexFilter
public final TermsEnumRequest.Builder indexFilter(@Nullable Query value)
Allows to filter an index shard if the provided query rewrites to match_none.API name:
index_filter
-
indexFilter
public final TermsEnumRequest.Builder indexFilter(java.util.function.Function<Query.Builder,ObjectBuilder<Query>> fn)
Allows to filter an index shard if the provided query rewrites to match_none.API name:
index_filter
-
searchAfter
public final TermsEnumRequest.Builder searchAfter(@Nullable java.lang.String value)
API name:search_after
-
size
public final TermsEnumRequest.Builder size(@Nullable java.lang.Integer value)
How many matching terms to return.API name:
size
-
string
public final TermsEnumRequest.Builder string(@Nullable java.lang.String value)
The string after which terms in the index should be returned. Allows for a form of pagination if the last result from one request is passed as the search_after parameter for a subsequent request.API name:
string
-
timeout
public final TermsEnumRequest.Builder timeout(@Nullable Time value)
The maximum length of time to spend collecting results. Defaults to "1s" (one second). If the timeout is exceeded the complete flag set to false in the response and the results may be partial or empty.API name:
timeout
-
timeout
public final TermsEnumRequest.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
The maximum length of time to spend collecting results. Defaults to "1s" (one second). If the timeout is exceeded the complete flag set to false in the response and the results may be partial or empty.API name:
timeout
-
build
public TermsEnumRequest build()
Builds aTermsEnumRequest.- Specified by:
buildin interfaceObjectBuilder<TermsEnumRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-