public class AnalyzeRequest extends SingleCustomOperationRequest<AnalyzeRequest>
TransportRequest.EmptyIndicesRequest.Replaceableheaders| 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, writeIndexlistenerThreaded, listenerThreadedputHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextpublic 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 StreamablereadFrom in class SingleCustomOperationRequest<AnalyzeRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class SingleCustomOperationRequest<AnalyzeRequest>IOExceptionCopyright © 2009–2016. All rights reserved.