Class MultiSearchTemplateRequest

  • All Implemented Interfaces:
    org.elasticsearch.action.CompositeIndicesRequest, org.elasticsearch.common.io.stream.Streamable, 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

      • 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 java.lang.Object>, org.elasticsearch.common.io.stream.Writeable.Writer<V extends java.lang.Object>
    • Constructor Detail

      • MultiSearchTemplateRequest

        public MultiSearchTemplateRequest()
    • Method Detail

      • 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.
      • 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)
      • readFrom

        public void readFrom​(org.elasticsearch.common.io.stream.StreamInput in)
                      throws java.io.IOException
        Specified by:
        readFrom in interface org.elasticsearch.common.io.stream.Streamable
        Overrides:
        readFrom in class org.elasticsearch.action.ActionRequest
        Throws:
        java.io.IOException
      • writeTo

        public void writeTo​(org.elasticsearch.common.io.stream.StreamOutput out)
                     throws java.io.IOException
        Specified by:
        writeTo in interface org.elasticsearch.common.io.stream.Streamable
        Specified by:
        writeTo in interface org.elasticsearch.common.io.stream.Writeable
        Overrides:
        writeTo in class org.elasticsearch.action.ActionRequest
        Throws:
        java.io.IOException
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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