Class AnalyzeRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.indices.AnalyzeRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<AnalyzeRequest.Builder,AnalyzeRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class AnalyzeRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<AnalyzeRequest.Builder,AnalyzeRequest>
Performs the analysis process on a text and return the tokens breakdown of the text.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AnalyzeRequest> Json deserializer forAnalyzeRequeststatic final Endpoint<AnalyzeRequest, AnalyzeResponse, ErrorResponse> Endpoint "indices.analyze". -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringanalyzer()The name of the analyzer that should be applied to the providedtext.Array of token attributes used to filter the output of theexplainparameter.static AnalyzeRequest.Builderbuilder()final List<CharFilter> Array of character filters used to preprocess characters before the tokenizer.booleanfinal Booleanexplain()Iftrue, the response includes token attributes and additional details.final Stringfield()API name:fieldfinal List<TokenFilter> filter()Array of token filters used to apply after the tokenizer.inthashCode()final Stringindex()Index used to derive the analyzer.final StringNormalizer to use to convert text into a single token.static AnalyzeRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtext()API name:textCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final TokenizerAPI name:tokenizerMethods inherited from class org.opensearch.client.opensearch._types.RequestBase
applyQueryParameters, errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forAnalyzeRequest -
_ENDPOINT
Endpoint "indices.analyze".
-
-
Method Details
-
of
-
analyzer
The name of the analyzer that should be applied to the providedtext. This could be a built-in analyzer, or an analyzer that's been configured in the index.API name:
analyzer -
attributes
Array of token attributes used to filter the output of theexplainparameter.API name:
attributes -
charFilter
Array of character filters used to preprocess characters before the tokenizer.API name:
char_filter -
explain
Iftrue, the response includes token attributes and additional details.API name:
explain -
field
API name:field -
filter
Array of token filters used to apply after the tokenizer.API name:
filter -
index
Index used to derive the analyzer. If specified, theanalyzeror field parameter overrides this value. If no index is specified or the index does not have a default analyzer, the analyze API uses the standard analyzer.API name:
index -
normalizer
Normalizer to use to convert text into a single token.API name:
normalizer -
text
API name:text -
tokenizer
API name:tokenizer -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AnalyzeRequest.Builder,AnalyzeRequest> - Returns:
- a new builder instance.
-
builder
-
setupAnalyzeRequestDeserializer
protected static void setupAnalyzeRequestDeserializer(ObjectDeserializer<AnalyzeRequest.Builder> op) -
hashCode
public int hashCode() -
equals
-