Class MultiSearchRequestBuilder

    • Method Detail

      • add

        public MultiSearchRequestBuilder add​(SearchRequest request)
        Add a search request to execute. Note, the order is important, the search response will be returned in the same order as the search requests.

        If ignoreIndices has been set on the search request, then the indicesOptions of the multi search request will not be used (if set).

      • setMaxConcurrentSearchRequests

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