Class AnalyzeAction.Request
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.single.shard.SingleShardRequest<AnalyzeAction.Request>
org.elasticsearch.action.admin.indices.analyze.AnalyzeAction.Request
- All Implemented Interfaces:
IndicesRequest,Writeable,org.elasticsearch.core.RefCounted,TaskAwareRequest
- Enclosing class:
- AnalyzeAction
A request to analyze a text associated with a specific index. Allow to provide
the actual analyzer name to perform the analysis with.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.ReplaceableNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.action.support.single.shard.SingleShardRequest
index, INDICES_OPTIONS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCharFilter(String charFilter)addCharFilter(Map<String,?> charFilter)addTokenFilter(String tokenFilter)addTokenFilter(Map<String,?> tokenFilter)analyzer()String[]attributes(String... attributes)voidattributes(List<String> attributes)booleanexplain()explain(boolean explain)field()static AnalyzeAction.RequestfromXContent(org.elasticsearch.common.xcontent.XContentParser parser, String index)normalizer(String normalizer)voidsetCharFilters(List<NameOrDefinition> charFilters)voidsetTokenFilters(List<NameOrDefinition> tokenFilters)String[]text()voidtokenizer(NameOrDefinition tokenizer)validate()voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.single.shard.SingleShardRequest
index, index, indices, indicesOptions, validateNonNullIndexMethods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.action.IndicesRequest
allowsRemoteIndices, includeDataStreamsMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
Request
public Request() -
Request
Constructs a new analyzer request for the provided index.- Parameters:
index- The text to analyze
-
-
Method Details
-
text
-
text
-
text
-
analyzer
-
analyzer
-
tokenizer
-
tokenizer
-
tokenizer
-
tokenizer
-
addTokenFilter
-
addTokenFilter
-
setTokenFilters
-
tokenFilters
-
addCharFilter
-
addCharFilter
-
setCharFilters
-
charFilters
-
field
-
field
-
explain
-
explain
public boolean explain() -
attributes
-
attributes
-
attributes
-
normalizer
-
normalizer
-
validate
- Specified by:
validatein classActionRequest
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classSingleShardRequest<AnalyzeAction.Request>- Throws:
IOException
-
fromXContent
public static AnalyzeAction.Request fromXContent(org.elasticsearch.common.xcontent.XContentParser parser, String index) throws IOException- Throws:
IOException
-