Class AnalyzeRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.AnalyzeRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class AnalyzeRequest extends RequestBase implements JsonpSerializable
Performs the analysis process on a text and return the tokens breakdown of
the text.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnalyzeRequest.BuilderBuilder forAnalyzeRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<AnalyzeRequest>_DESERIALIZERJson deserializer forAnalyzeRequeststatic Endpoint<AnalyzeRequest,AnalyzeResponse,ErrorResponse>_ENDPOINTEndpoint "indices.analyze". -
Method Summary
Modifier and Type Method Description java.lang.Stringanalyzer()API name:analyzerjava.util.List<java.lang.String>attributes()API name:attributesjava.util.List<CharFilter>charFilter()API name:char_filterjava.lang.Booleanexplain()API name:explainjava.lang.Stringfield()API name:fieldjava.util.List<TokenFilter>filter()API name:filterjava.lang.Stringindex()The name of the index to scope the operationjava.lang.Stringnormalizer()API name:normalizerstatic AnalyzeRequestof(java.util.function.Function<AnalyzeRequest.Builder,ObjectBuilder<AnalyzeRequest>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupAnalyzeRequestDeserializer(ObjectDeserializer<AnalyzeRequest.Builder> op)java.util.List<java.lang.String>text()API name:textTokenizertokenizer()API name:tokenizerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forAnalyzeRequest -
_ENDPOINT
Endpoint "indices.analyze".
-
-
Method Details
-
of
public static AnalyzeRequest of(java.util.function.Function<AnalyzeRequest.Builder,ObjectBuilder<AnalyzeRequest>> fn) -
analyzer
@Nullable public final java.lang.String analyzer()API name:analyzer -
attributes
public final java.util.List<java.lang.String> attributes()API name:attributes -
charFilter
API name:char_filter -
explain
@Nullable public final java.lang.Boolean explain()API name:explain -
field
@Nullable public final java.lang.String field()API name:field -
filter
API name:filter -
index
@Nullable public final java.lang.String index()The name of the index to scope the operationAPI name:
index -
normalizer
@Nullable public final java.lang.String normalizer()API name:normalizer -
text
public final java.util.List<java.lang.String> text()API name:text -
tokenizer
API name:tokenizer -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupAnalyzeRequestDeserializer
protected static void setupAnalyzeRequestDeserializer(ObjectDeserializer<AnalyzeRequest.Builder> op)
-