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.core.RefCounted, org.elasticsearch.tasks.TaskAwareRequest

public class MultiSearchTemplateRequest extends org.elasticsearch.action.ActionRequest implements org.elasticsearch.action.CompositeIndicesRequest
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest

    org.elasticsearch.transport.TransportRequest.Empty

    Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

    org.elasticsearch.common.io.stream.Writeable.Reader<V extends Object>, org.elasticsearch.common.io.stream.Writeable.Writer<V extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    MultiSearchTemplateRequest(org.elasticsearch.common.io.stream.StreamInput in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Add a search template request to execute.
    Add a search template request to execute.
    boolean
     
    int
     
    org.elasticsearch.action.support.IndicesOptions
     
    indicesOptions(org.elasticsearch.action.support.IndicesOptions indicesOptions)
     
    int
    Returns the amount of search requests specified in this multi search requests are allowed to be ran concurrently.
    maxConcurrentSearchRequests(int maxConcurrentSearchRequests)
    Sets how many search requests specified in this multi search requests are allowed to be ran concurrently.
     
    org.elasticsearch.action.ActionRequestValidationException
     
    static byte[]
    writeMultiLineFormat(MultiSearchTemplateRequest multiSearchTemplateRequest, org.elasticsearch.xcontent.XContent xContent)
     
    void
    writeTo(org.elasticsearch.common.io.stream.StreamOutput out)
     

    Methods inherited from class org.elasticsearch.action.ActionRequest

    getShouldStoreResult

    Methods inherited from class org.elasticsearch.transport.TransportRequest

    getParentTask, setParentTask, toString

    Methods inherited from class org.elasticsearch.transport.TransportMessage

    decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRef

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest

    createTask, getDescription, setParentTask
  • Constructor Details

    • MultiSearchTemplateRequest

      public MultiSearchTemplateRequest()
    • MultiSearchTemplateRequest

      public MultiSearchTemplateRequest(org.elasticsearch.common.io.stream.StreamInput in) throws IOException
      Throws:
      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

      public MultiSearchTemplateRequest maxConcurrentSearchRequests(int maxConcurrentSearchRequests)
      Sets how many search requests specified in this multi search requests are allowed to be ran concurrently.
    • requests

      public List<SearchTemplateRequest> requests()
    • validate

      public org.elasticsearch.action.ActionRequestValidationException validate()
      Specified by:
      validate in class org.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 IOException
      Specified by:
      writeTo in interface org.elasticsearch.common.io.stream.Writeable
      Overrides:
      writeTo in class org.elasticsearch.action.ActionRequest
      Throws:
      IOException
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • writeMultiLineFormat

      public static byte[] writeMultiLineFormat(MultiSearchTemplateRequest multiSearchTemplateRequest, org.elasticsearch.xcontent.XContent xContent) throws IOException
      Throws:
      IOException