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,TaskAwareRequest
- Enclosing class:
- AnalyzeAction
public static class AnalyzeAction.Request extends SingleShardRequest<AnalyzeAction.Request>
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
-
Method Summary
Modifier and Type Method Description AnalyzeAction.RequestaddCharFilter(java.lang.String charFilter)AnalyzeAction.RequestaddCharFilter(java.util.Map<java.lang.String,?> charFilter)AnalyzeAction.RequestaddTokenFilter(java.lang.String tokenFilter)AnalyzeAction.RequestaddTokenFilter(java.util.Map<java.lang.String,?> tokenFilter)java.lang.Stringanalyzer()AnalyzeAction.Requestanalyzer(java.lang.String analyzer)java.lang.String[]attributes()AnalyzeAction.Requestattributes(java.lang.String... attributes)voidattributes(java.util.List<java.lang.String> attributes)java.util.List<NameOrDefinition>charFilters()booleanexplain()AnalyzeAction.Requestexplain(boolean explain)java.lang.Stringfield()AnalyzeAction.Requestfield(java.lang.String field)static AnalyzeAction.RequestfromXContent(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.String index)java.lang.Stringnormalizer()AnalyzeAction.Requestnormalizer(java.lang.String normalizer)voidsetCharFilters(java.util.List<NameOrDefinition> charFilters)voidsetTokenFilters(java.util.List<NameOrDefinition> tokenFilters)java.lang.String[]text()AnalyzeAction.Requesttext(java.lang.String... text)AnalyzeAction.Requesttext(java.util.List<java.lang.String> text)java.util.List<NameOrDefinition>tokenFilters()NameOrDefinitiontokenizer()AnalyzeAction.Requesttokenizer(java.lang.String tokenizer)AnalyzeAction.Requesttokenizer(java.util.Map<java.lang.String,?> tokenizer)voidtokenizer(NameOrDefinition tokenizer)ActionRequestValidationExceptionvalidate()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.transport.TransportRequest
getParentTask, setParentTaskMethods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddressMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
Method Details
-
text
public java.lang.String[] text() -
text
-
text
-
analyzer
-
analyzer
public java.lang.String analyzer() -
tokenizer
-
tokenizer
-
tokenizer
-
tokenizer
-
addTokenFilter
-
addTokenFilter
-
setTokenFilters
-
tokenFilters
-
addCharFilter
-
addCharFilter
-
setCharFilters
-
charFilters
-
field
-
field
public java.lang.String field() -
explain
-
explain
public boolean explain() -
attributes
-
attributes
public void attributes(java.util.List<java.lang.String> attributes) -
attributes
public java.lang.String[] attributes() -
normalizer
public java.lang.String 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:
java.io.IOException
-
fromXContent
public static AnalyzeAction.Request fromXContent(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.String index) throws java.io.IOException- Throws:
java.io.IOException
-