PercolateQueryBuilder@Deprecated public class PercolateRequest extends ActionRequest implements IndicesRequest.Replaceable
TransportRequest.EmptyIndicesRequest.Replaceable| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String[] |
indices
Deprecated.
|
| Constructor and Description |
|---|
PercolateRequest()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
documentType()
Deprecated.
Getter for
documentType(String) |
PercolateRequest |
documentType(java.lang.String type)
Deprecated.
Sets the type of the document to percolate.
|
GetRequest |
getRequest()
Deprecated.
Getter for
getRequest(GetRequest) |
PercolateRequest |
getRequest(GetRequest getRequest)
Deprecated.
This defines where to fetch the document to be percolated from, which is an alternative of defining the document
to percolate in the request body.
|
java.lang.String[] |
indices()
Deprecated.
|
PercolateRequest |
indices(java.lang.String... indices)
Deprecated.
|
IndicesOptions |
indicesOptions()
Deprecated.
|
PercolateRequest |
indicesOptions(IndicesOptions indicesOptions)
Deprecated.
|
boolean |
onlyCount()
Deprecated.
Getter for
onlyCount(boolean) |
PercolateRequest |
onlyCount(boolean onlyCount)
Deprecated.
Sets whether this percolate request should only count the number of percolator queries that matches with
the document being percolated and don't keep track of the actual queries that have matched.
|
java.lang.String |
preference()
Deprecated.
Getter for
preference(String) |
PercolateRequest |
preference(java.lang.String preference)
Deprecated.
Sets the preference to execute the search.
|
void |
readFrom(StreamInput in)
Deprecated.
|
java.lang.String |
routing()
Deprecated.
Getter for
routing(String) |
PercolateRequest |
routing(java.lang.String routing)
Deprecated.
A comma separated list of routing values to control the shards the search will be executed on.
|
BytesReference |
source()
Deprecated.
|
PercolateRequest |
source(byte[] document)
Deprecated.
Raw version of
source(PercolateSourceBuilder) |
PercolateRequest |
source(byte[] source,
int offset,
int length)
Deprecated.
Raw version of
source(PercolateSourceBuilder) |
PercolateRequest |
source(BytesReference source)
Deprecated.
Raw version of
source(PercolateSourceBuilder) |
PercolateRequest |
source(java.util.Map document)
Deprecated.
Raw version of
source(PercolateSourceBuilder) |
PercolateRequest |
source(java.util.Map document,
XContentType contentType)
Deprecated.
Raw version of
source(PercolateSourceBuilder) |
PercolateRequest |
source(PercolateSourceBuilder sourceBuilder)
Deprecated.
Sets the request body definition for this percolate request as raw bytes.
|
PercolateRequest |
source(java.lang.String document)
Deprecated.
Raw version of
source(PercolateSourceBuilder) |
PercolateRequest |
source(XContentBuilder documentBuilder)
Deprecated.
Raw version of
source(PercolateSourceBuilder) |
ActionRequestValidationException |
validate()
Deprecated.
|
void |
writeTo(StreamOutput out)
Deprecated.
|
getShouldStoreResultgetParentTask, setParentTaskremoteAddress, remoteAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTask, getDescription, setParentTaskpublic java.lang.String[] indices()
indices in interface IndicesRequestpublic final PercolateRequest indices(java.lang.String... indices)
indices in interface IndicesRequest.Replaceablepublic IndicesOptions indicesOptions()
indicesOptions in interface IndicesRequestpublic PercolateRequest indicesOptions(IndicesOptions indicesOptions)
public java.lang.String documentType()
documentType(String)public PercolateRequest documentType(java.lang.String type)
public java.lang.String routing()
routing(String)public PercolateRequest routing(java.lang.String routing)
public java.lang.String preference()
preference(String)public PercolateRequest preference(java.lang.String preference)
public GetRequest getRequest()
getRequest(GetRequest)public PercolateRequest getRequest(GetRequest getRequest)
public BytesReference source()
public PercolateRequest source(java.util.Map document) throws ElasticsearchGenerationException
source(PercolateSourceBuilder)ElasticsearchGenerationExceptionpublic PercolateRequest source(java.util.Map document, XContentType contentType) throws ElasticsearchGenerationException
source(PercolateSourceBuilder)ElasticsearchGenerationExceptionpublic PercolateRequest source(java.lang.String document)
source(PercolateSourceBuilder)public PercolateRequest source(XContentBuilder documentBuilder)
source(PercolateSourceBuilder)public PercolateRequest source(byte[] document)
source(PercolateSourceBuilder)public PercolateRequest source(byte[] source, int offset, int length)
source(PercolateSourceBuilder)public PercolateRequest source(BytesReference source)
source(PercolateSourceBuilder)public PercolateRequest source(PercolateSourceBuilder sourceBuilder)
public boolean onlyCount()
onlyCount(boolean)public PercolateRequest onlyCount(boolean onlyCount)
public ActionRequestValidationException validate()
validate in class ActionRequestpublic void readFrom(StreamInput in) throws java.io.IOException
readFrom in interface StreamablereadFrom in class ActionRequestjava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
writeTo in interface StreamablewriteTo in class ActionRequestjava.io.IOException