Class TermsEnumRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.core.TermsEnumRequest
- All Implemented Interfaces:
- JsonpSerializable
Get terms in an index.
 
Discover terms that match a partial string in an index. This API is designed for low-latency look-ups used in auto-complete scenarios.
info The terms enum API may return terms from deleted documents. Deleted documents are initially only marked as deleted. It is not until their segments are merged that documents are actually deleted. Until that happens, the terms enum API will return terms from these documents.
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TermsEnumRequest>Json deserializer forTermsEnumRequeststatic final Endpoint<TermsEnumRequest,TermsEnumResponse, ErrorResponse> Endpoint "terms_enum".
- 
Method SummaryModifier and TypeMethodDescriptionfinal BooleanWhentrue, the provided search string is matched against index terms without case sensitivity.final Stringfield()Required - The string to match at the start of indexed terms.final Stringindex()Required - A comma-separated list of data streams, indices, and index aliases to search.final QueryFilter an index shard if the provided query rewrites tomatch_none.static TermsEnumRequestfinal StringThe string after which terms in the index should be returned.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Integersize()The number of matching terms to return.final Stringstring()The string to match at the start of indexed terms.final Timetimeout()The maximum length of time to spend collecting results.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forTermsEnumRequest
- 
_ENDPOINTEndpoint "terms_enum".
 
- 
- 
Method Details- 
ofpublic static TermsEnumRequest of(Function<TermsEnumRequest.Builder, ObjectBuilder<TermsEnumRequest>> fn) 
- 
caseInsensitiveWhentrue, the provided search string is matched against index terms without case sensitivity.API name: case_insensitive
- 
fieldRequired - The string to match at the start of indexed terms. If not provided, all terms in the field are considered.API name: field
- 
indexRequired - 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
- 
indexFilterFilter an index shard if the provided query rewrites tomatch_none.API name: index_filter
- 
searchAfterThe 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
- 
sizeThe number of matching terms to return.API name: size
- 
stringThe 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
- 
timeoutThe 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
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupTermsEnumRequestDeserializerprotected static void setupTermsEnumRequestDeserializer(ObjectDeserializer<TermsEnumRequest.Builder> op) 
 
-