Class MultiSearchTemplateRequest
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportRequest
-
- org.elasticsearch.action.ActionRequest
-
- org.elasticsearch.script.mustache.MultiSearchTemplateRequest
-
- All Implemented Interfaces:
CompositeIndicesRequest
,Streamable
,Writeable
,TaskAwareRequest
public class MultiSearchTemplateRequest extends ActionRequest implements CompositeIndicesRequest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V extends java.lang.Object>, Writeable.Writer<V extends java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description MultiSearchTemplateRequest()
-
Method Summary
Modifier and Type Method Description MultiSearchTemplateRequest
add(SearchTemplateRequest request)
Add a search template request to execute.MultiSearchTemplateRequest
add(SearchTemplateRequestBuilder request)
Add a search template request to execute.boolean
equals(java.lang.Object o)
int
hashCode()
IndicesOptions
indicesOptions()
MultiSearchTemplateRequest
indicesOptions(IndicesOptions indicesOptions)
int
maxConcurrentSearchRequests()
Returns the amount of search requests specified in this multi search requests are allowed to be ran concurrently.MultiSearchTemplateRequest
maxConcurrentSearchRequests(int maxConcurrentSearchRequests)
Sets how many search requests specified in this multi search requests are allowed to be ran concurrently.void
readFrom(StreamInput in)
java.util.List<SearchTemplateRequest>
requests()
ActionRequestValidationException
validate()
static byte[]
writeMultiLineFormat(MultiSearchTemplateRequest multiSearchTemplateRequest, XContent xContent)
void
writeTo(StreamOutput out)
-
Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult
-
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask
-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
-
-
-
Method Detail
-
add
public MultiSearchTemplateRequest add(SearchTemplateRequestBuilder request)
Add a search template request to execute. Note, the order is important, the search response will be returned in the same order as the search requests.
-
add
public MultiSearchTemplateRequest add(SearchTemplateRequest request)
Add a search template request to execute. Note, the order is important, the search response will be returned in the same order as the search requests.
-
maxConcurrentSearchRequests
public int maxConcurrentSearchRequests()
Returns the amount of search requests specified in this multi search requests are allowed to be ran concurrently.
-
maxConcurrentSearchRequests
public MultiSearchTemplateRequest maxConcurrentSearchRequests(int maxConcurrentSearchRequests)
Sets how many search requests specified in this multi search requests are allowed to be ran concurrently.
-
requests
public java.util.List<SearchTemplateRequest> requests()
-
validate
public ActionRequestValidationException validate()
- Specified by:
validate
in classActionRequest
-
indicesOptions
public IndicesOptions indicesOptions()
-
indicesOptions
public MultiSearchTemplateRequest indicesOptions(IndicesOptions indicesOptions)
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
- Specified by:
readFrom
in interfaceStreamable
- Overrides:
readFrom
in classActionRequest
- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
- Specified by:
writeTo
in interfaceStreamable
- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classActionRequest
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
writeMultiLineFormat
public static byte[] writeMultiLineFormat(MultiSearchTemplateRequest multiSearchTemplateRequest, XContent xContent) throws java.io.IOException
- Throws:
java.io.IOException
-
-