Module org.elasticsearch.server
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,- 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 SummaryNested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequestTransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequestIndicesRequest.ReplaceableNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from class org.elasticsearch.action.support.single.shard.SingleShardRequestindex, INDICES_OPTIONS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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(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.SingleShardRequestindex, index, indices, indicesOptions, validateNonNullIndexMethods inherited from class org.elasticsearch.action.ActionRequestgetShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequestgetParentTask, setParentTask, toStringMethods inherited from class org.elasticsearch.transport.TransportMessagedecRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.action.IndicesRequestincludeDataStreamsMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequestcreateTask, getDescription, setParentTask
- 
Constructor Details- 
Requestpublic Request()
- 
RequestConstructs 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
- 
explainpublic boolean explain()
- 
attributes
- 
attributes
- 
attributes
- 
normalizer
- 
normalizer
- 
validate- Specified by:
- validatein class- ActionRequest
 
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Overrides:
- writeToin class- SingleShardRequest<AnalyzeAction.Request>
- Throws:
- IOException
 
- 
fromXContentpublic static AnalyzeAction.Request fromXContent(XContentParser parser, String index) throws IOException - Throws:
- IOException
 
 
-