public class AnalyzeRequest extends SingleCustomOperationRequest<AnalyzeRequest>
TransportRequest.Empty
IndicesRequest.Replaceable
Constructor and Description |
---|
AnalyzeRequest(String text)
Constructs a new analyzer request for the provided text.
|
AnalyzeRequest(String index,
String text)
Constructs a new analyzer request for the provided index and text.
|
Modifier and Type | Method and Description |
---|---|
String |
analyzer() |
AnalyzeRequest |
analyzer(String analyzer) |
String[] |
charFilters() |
AnalyzeRequest |
charFilters(String... charFilters) |
String |
field() |
AnalyzeRequest |
field(String field) |
void |
readFrom(StreamInput in) |
String |
text() |
String[] |
tokenFilters() |
AnalyzeRequest |
tokenFilters(String... tokenFilters) |
String |
tokenizer() |
AnalyzeRequest |
tokenizer(String tokenizer) |
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
beforeLocalFork, index, index, indices, indicesOptions, operationThreaded, operationThreaded, preferLocal, preferLocalShard, readIndex, writeIndex
listenerThreaded, listenerThreaded
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContext
public AnalyzeRequest(String text)
text
- The text to analyzepublic String text()
public AnalyzeRequest analyzer(String analyzer)
public String analyzer()
public AnalyzeRequest tokenizer(String tokenizer)
public String tokenizer()
public AnalyzeRequest tokenFilters(String... tokenFilters)
public String[] tokenFilters()
public AnalyzeRequest charFilters(String... charFilters)
public String[] charFilters()
public AnalyzeRequest field(String field)
public String field()
public ActionRequestValidationException validate()
validate
in class SingleCustomOperationRequest<AnalyzeRequest>
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class SingleCustomOperationRequest<AnalyzeRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class SingleCustomOperationRequest<AnalyzeRequest>
IOException
Copyright © 2009–2015. All rights reserved.