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:
org.elasticsearch.action.CompositeIndicesRequest,org.elasticsearch.common.io.stream.Writeable,org.elasticsearch.tasks.TaskAwareRequest
public class MultiSearchTemplateRequest
extends org.elasticsearch.action.ActionRequest
implements org.elasticsearch.action.CompositeIndicesRequest
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description MultiSearchTemplateRequest()MultiSearchTemplateRequest(org.elasticsearch.common.io.stream.StreamInput in) -
Method Summary
Modifier and Type Method Description MultiSearchTemplateRequestadd(SearchTemplateRequest request)Add a search template request to execute.MultiSearchTemplateRequestadd(SearchTemplateRequestBuilder request)Add a search template request to execute.booleanequals(java.lang.Object o)inthashCode()org.elasticsearch.action.support.IndicesOptionsindicesOptions()MultiSearchTemplateRequestindicesOptions(org.elasticsearch.action.support.IndicesOptions indicesOptions)intmaxConcurrentSearchRequests()Returns the amount of search requests specified in this multi search requests are allowed to be ran concurrently.MultiSearchTemplateRequestmaxConcurrentSearchRequests(int maxConcurrentSearchRequests)Sets how many search requests specified in this multi search requests are allowed to be ran concurrently.java.util.List<SearchTemplateRequest>requests()org.elasticsearch.action.ActionRequestValidationExceptionvalidate()static byte[]writeMultiLineFormat(MultiSearchTemplateRequest multiSearchTemplateRequest, org.elasticsearch.common.xcontent.XContent xContent)voidwriteTo(org.elasticsearch.common.io.stream.StreamOutput out)Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTaskMethods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Constructor Details
-
MultiSearchTemplateRequest
public MultiSearchTemplateRequest() -
MultiSearchTemplateRequest
public MultiSearchTemplateRequest(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Details
-
add
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
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
Sets how many search requests specified in this multi search requests are allowed to be ran concurrently. -
requests
-
validate
public org.elasticsearch.action.ActionRequestValidationException validate()- Specified by:
validatein classorg.elasticsearch.action.ActionRequest
-
indicesOptions
public org.elasticsearch.action.support.IndicesOptions indicesOptions() -
indicesOptions
public MultiSearchTemplateRequest indicesOptions(org.elasticsearch.action.support.IndicesOptions indicesOptions) -
writeTo
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws java.io.IOException- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Writeable- Overrides:
writeToin classorg.elasticsearch.action.ActionRequest- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
writeMultiLineFormat
public static byte[] writeMultiLineFormat(MultiSearchTemplateRequest multiSearchTemplateRequest, org.elasticsearch.common.xcontent.XContent xContent) throws java.io.IOException- Throws:
java.io.IOException
-