Class AnalyzeAction.Request
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.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.Replaceable
Nested 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 TypeMethodDescriptioncharFilter)
<,?> charFilter)
tokenFilter)
<,?> tokenFilter)
analyzer()
analyzer)
[]
... attributes)
void
<> attributes)
boolean
explain()
explain(boolean explain)
field()
field)
static AnalyzeAction.Request
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser, index)
normalizer)
void
<NameOrDefinition> charFilters)
void
<NameOrDefinition> tokenFilters)
[]
text()
... text)
<> text)
tokenizer)
<,?> tokenizer)
void
tokenizer(NameOrDefinition tokenizer)
validate()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.single.shard.SingleShardRequest
index, index, indices, indicesOptions, validateNonNullIndex
Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask, toString
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.
, , , , , , , , ,
Methods inherited from interface org.elasticsearch.action.IndicesRequest
allowsRemoteIndices, includeDataStreams
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
Request
public Request() -
Request
public Request( index)Constructs a new analyzer request for the provided index.- Parameters:
index
- The text to analyze
-
-
Method Details
-
text
public [] text() -
text
public ... text) -
text
public <> text) -
analyzer
public analyzer) -
analyzer
public analyzer() -
tokenizer
public tokenizer) -
tokenizer
public <,?> tokenizer) -
tokenizer
-
tokenizer
-
addTokenFilter
public tokenFilter) -
addTokenFilter
public <,?> tokenFilter) -
setTokenFilters
-
tokenFilters
-
addCharFilter
public <,?> charFilter) -
addCharFilter
public charFilter) -
setCharFilters
-
charFilters
-
field
public field) -
field
public field() -
explain
-
explain
public boolean explain() -
attributes
public ... attributes) -
attributes
public void attributes(<> attributes) -
attributes
public [] attributes() -
normalizer
public normalizer() -
normalizer
public normalizer) -
validate
- Specified by:
validate
in classActionRequest
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classSingleShardRequest<AnalyzeAction.Request>
- Throws:
-
fromXContent
public static AnalyzeAction.Request fromXContent(org.elasticsearch.common.xcontent.XContentParser parser, index) throws- Throws:
-