public class AnalyzeRequest extends SingleShardRequest<AnalyzeRequest>
Modifier and Type | Class and Description |
---|---|
static class |
AnalyzeRequest.NameOrDefinition |
TransportRequest.Empty
IndicesRequest.Replaceable
index, INDICES_OPTIONS
Constructor and Description |
---|
AnalyzeRequest() |
AnalyzeRequest(java.lang.String index)
Constructs a new analyzer request for the provided index.
|
Modifier and Type | Method and Description |
---|---|
AnalyzeRequest |
addCharFilter(java.util.Map<java.lang.String,?> charFilter) |
AnalyzeRequest |
addCharFilter(java.lang.String charFilter) |
AnalyzeRequest |
addTokenFilter(java.util.Map<java.lang.String,?> tokenFilter) |
AnalyzeRequest |
addTokenFilter(java.lang.String tokenFilter) |
java.lang.String |
analyzer() |
AnalyzeRequest |
analyzer(java.lang.String analyzer) |
java.lang.String[] |
attributes() |
AnalyzeRequest |
attributes(java.lang.String... attributes) |
java.util.List<AnalyzeRequest.NameOrDefinition> |
charFilters() |
boolean |
explain() |
AnalyzeRequest |
explain(boolean explain) |
java.lang.String |
field() |
AnalyzeRequest |
field(java.lang.String field) |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
java.lang.String[] |
text() |
AnalyzeRequest |
text(java.lang.String... text) |
java.util.List<AnalyzeRequest.NameOrDefinition> |
tokenFilters() |
AnalyzeRequest.NameOrDefinition |
tokenizer() |
AnalyzeRequest |
tokenizer(java.util.Map<java.lang.String,?> tokenizer) |
AnalyzeRequest |
tokenizer(java.lang.String tokenizer) |
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
index, index, indices, indicesOptions, operationThreaded, operationThreaded, validateNonNullIndex
getShouldStoreResult
getParentTask, setParentTask
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTask, getDescription, setParentTask
public AnalyzeRequest()
public AnalyzeRequest(java.lang.String index)
index
- The text to analyzepublic java.lang.String[] text()
public AnalyzeRequest text(java.lang.String... text)
public AnalyzeRequest analyzer(java.lang.String analyzer)
public java.lang.String analyzer()
public AnalyzeRequest tokenizer(java.lang.String tokenizer)
public AnalyzeRequest tokenizer(java.util.Map<java.lang.String,?> tokenizer)
public AnalyzeRequest.NameOrDefinition tokenizer()
public AnalyzeRequest addTokenFilter(java.lang.String tokenFilter)
public AnalyzeRequest addTokenFilter(java.util.Map<java.lang.String,?> tokenFilter)
public java.util.List<AnalyzeRequest.NameOrDefinition> tokenFilters()
public AnalyzeRequest addCharFilter(java.util.Map<java.lang.String,?> charFilter)
public AnalyzeRequest addCharFilter(java.lang.String charFilter)
public java.util.List<AnalyzeRequest.NameOrDefinition> charFilters()
public AnalyzeRequest field(java.lang.String field)
public java.lang.String field()
public AnalyzeRequest explain(boolean explain)
public boolean explain()
public AnalyzeRequest attributes(java.lang.String... attributes)
public java.lang.String[] attributes()
public ActionRequestValidationException validate()
validate
in class ActionRequest
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class SingleShardRequest<AnalyzeRequest>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class SingleShardRequest<AnalyzeRequest>
java.io.IOException