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 class
AnalyzeRequest.Builder
Builder 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>
_DESERIALIZER
Json deserializer forAnalyzeRequest
static Endpoint<AnalyzeRequest,AnalyzeResponse,ErrorResponse>
_ENDPOINT
Endpoint "indices.analyze
". -
Method Summary
Modifier and Type Method Description java.lang.String
analyzer()
API name:analyzer
java.util.List<java.lang.String>
attributes()
API name:attributes
java.util.List<CharFilter>
charFilter()
API name:char_filter
java.lang.Boolean
explain()
API name:explain
java.lang.String
field()
API name:field
java.util.List<TokenFilter>
filter()
API name:filter
java.lang.String
index()
The name of the index to scope the operationjava.lang.String
normalizer()
API name:normalizer
static AnalyzeRequest
of(java.util.function.Function<AnalyzeRequest.Builder,ObjectBuilder<AnalyzeRequest>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupAnalyzeRequestDeserializer(ObjectDeserializer<AnalyzeRequest.Builder> op)
java.util.List<java.lang.String>
text()
API name:text
Tokenizer
tokenizer()
API name:tokenizer
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupAnalyzeRequestDeserializer
protected static void setupAnalyzeRequestDeserializer(ObjectDeserializer<AnalyzeRequest.Builder> op)
-