public class PercolateRequest extends BroadcastOperationRequest<PercolateRequest > implements CompositeIndicesRequest
TransportRequest.Empty IndicesRequest.Replaceable indicesheaders| Constructor and Description |
|---|
PercolateRequest()
Constructor only for internal usage.
|
| Modifier and Type | Method and Description |
|---|---|
String |
documentType()
Getter for
documentType(String)
|
PercolateRequest |
documentType(String
Sets the type of the document to percolate.
|
GetRequest |
getRequest()
Getter for
getRequest(GetRequest)
|
PercolateRequest |
getRequest(GetRequest
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.
|
boolean |
onlyCount()
Getter for
onlyCount(boolean)
|
PercolateRequest |
onlyCount(boolean onlyCount)
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.
|
String |
preference()
Getter for
preference(String)
|
PercolateRequest |
preference(String
Sets the preference to execute the search.
|
void |
readFrom(StreamInput
|
String |
routing()
Getter for
routing(String)
|
PercolateRequest |
routing(String
A comma separated list of routing values to control the shards the search will be executed on.
|
BytesReference |
source()
|
PercolateRequest |
source(byte[] document)
Raw version of
source(PercolateSourceBuilder)
|
PercolateRequest |
source(byte[] source, int offset, int length)
Raw version of
source(PercolateSourceBuilder)
|
PercolateRequest |
source(BytesReference
Raw version of
source(PercolateSourceBuilder)
|
PercolateRequest |
source(Map
Raw version of
source(PercolateSourceBuilder)
|
PercolateRequest |
source(Map
Raw version of
source(PercolateSourceBuilder)
|
PercolateRequest |
source(PercolateSourceBuilder
Sets the request body definition for this percolate request as raw bytes.
|
PercolateRequest |
source(String
Raw version of
source(PercolateSourceBuilder)
|
PercolateRequest |
source(XContentBuilder
Raw version of
source(PercolateSourceBuilder)
|
List |
subRequests()
Returns the subrequests that a composite request is composed of
|
ActionRequestValidationException |
validate()
|
void |
writeTo(StreamOutput
|
indices, indices, indicesOptions, indicesOptionslistenerThreaded, listenerThreadedputHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextpublic List<? extends IndicesRequest > subRequests()
CompositeIndicesRequest
public StringdocumentType()
documentType(String)
public PercolateRequestdocumentType(String type)
public Stringrouting()
routing(String)
public PercolateRequestrouting(String routing)
public Stringpreference()
preference(String)
public PercolateRequestpreference(String preference)
public GetRequestgetRequest()
getRequest(GetRequest)
public PercolateRequestgetRequest(GetRequest getRequest)
public BytesReferencesource()
public PercolateRequestsource(Map document) throws ElasticsearchGenerationException
source(PercolateSourceBuilder)
ElasticsearchGenerationException
public PercolateRequestsource(Map document, XContentType contentType) throws ElasticsearchGenerationException
source(PercolateSourceBuilder)
ElasticsearchGenerationException
public PercolateRequestsource(String document)
source(PercolateSourceBuilder)
public PercolateRequestsource(XContentBuilder documentBuilder)
source(PercolateSourceBuilder)
public PercolateRequestsource(byte[] document)
source(PercolateSourceBuilder)
public PercolateRequestsource(byte[] source, int offset, int length)
source(PercolateSourceBuilder)
public PercolateRequestsource(BytesReference source)
source(PercolateSourceBuilder)
public PercolateRequestsource(PercolateSourceBuilder sourceBuilder)
public boolean onlyCount()
onlyCount(boolean)
public PercolateRequestonlyCount(boolean onlyCount)
public ActionRequestValidationExceptionvalidate()
public void readFrom(StreamInputin) throws IOException
readFrom in interface
Streamable
readFrom in class
BroadcastOperationRequest<PercolateRequest>
IOException
public void writeTo(StreamOutputout) throws IOException
writeTo in interface
Streamable
writeTo in class
BroadcastOperationRequest<PercolateRequest>
IOException