@Override public MultiSearchRequestBuilder newRequestBuilder(ElasticsearchClient client) { return new MultiSearchRequestBuilder(client, this); } }
/** * Specifies what type of requested indices to ignore and how to deal with wildcard indices expressions. * For example indices that don't exist. * <p> * Invoke this method before invoking {@link #add(SearchRequestBuilder)}. */ public MultiSearchRequestBuilder setIndicesOptions(IndicesOptions indicesOptions) { request().indicesOptions(indicesOptions); return this; }
@Override public MultiSearchRequestBuilder prepareMultiSearch() { return new MultiSearchRequestBuilder(this, MultiSearchAction.INSTANCE); }
/** * Sets how many search requests specified in this multi search requests are allowed to be ran concurrently. */ public MultiSearchRequestBuilder setMaxConcurrentSearchRequests(int maxConcurrentSearchRequests) { request().maxConcurrentSearchRequests(maxConcurrentSearchRequests); return this; } }
@Override public MultiSearchRequestBuilder newRequestBuilder(ElasticsearchClient client) { return new MultiSearchRequestBuilder(client, this); } }
/** * 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. */ public MultiSearchRequestBuilder add(SearchRequestBuilder request) { if (request.request().indicesOptions() == SearchRequest.DEFAULT_INDICES_OPTIONS && request().indicesOptions() != SearchRequest.DEFAULT_INDICES_OPTIONS) { request.request().indicesOptions(request().indicesOptions()); } super.request.add(request); return this; }
@Override public MultiSearchRequestBuilder newRequestBuilder(ElasticsearchClient client) { return new MultiSearchRequestBuilder(client, this); } }
/** * 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. * <p> * If ignoreIndices has been set on the search request, then the indicesOptions of the multi search request * will not be used (if set). */ public MultiSearchRequestBuilder add(SearchRequest request) { if (request.indicesOptions() == IndicesOptions.strictExpandOpenAndForbidClosed() && request().indicesOptions() != IndicesOptions.strictExpandOpenAndForbidClosed()) { request.indicesOptions(request().indicesOptions()); } super.request.add(request); return this; }
@Override public MultiSearchRequestBuilder newRequestBuilder(ElasticsearchClient client) { return new MultiSearchRequestBuilder(client, this); } }
/** * Sets how many search requests specified in this multi search requests are allowed to be ran concurrently. */ public MultiSearchRequestBuilder setMaxConcurrentSearchRequests(int maxConcurrentSearchRequests) { request().maxConcurrentSearchRequests(maxConcurrentSearchRequests); return this; } }
@Override public MultiSearchRequestBuilder newRequestBuilder(ElasticsearchClient client) { return new MultiSearchRequestBuilder(client, this); } }
/** * Specifies what type of requested indices to ignore and how to deal with wildcard indices expressions. * For example indices that don't exist. * <p> * Invoke this method before invoking {@link #add(SearchRequestBuilder)}. */ public MultiSearchRequestBuilder setIndicesOptions(IndicesOptions indicesOptions) { request().indicesOptions(indicesOptions); return this; }
@Override public MultiSearchRequestBuilder prepareMultiSearch() { return new MultiSearchRequestBuilder(this, MultiSearchAction.INSTANCE); }
/** * Specifies what type of requested indices to ignore and how to deal with wildcard indices expressions. * For example indices that don't exist. * <p> * Invoke this method before invoking {@link #add(SearchRequestBuilder)}. */ public MultiSearchRequestBuilder setIndicesOptions(IndicesOptions indicesOptions) { request().indicesOptions(indicesOptions); return this; }
@Override public MultiSearchRequestBuilder prepareMultiSearch() { return new MultiSearchRequestBuilder(this); }
/** * Sets how many search requests specified in this multi search requests are allowed to be ran concurrently. */ public MultiSearchRequestBuilder setMaxConcurrentSearchRequests(int maxConcurrentSearchRequests) { request().maxConcurrentSearchRequests(maxConcurrentSearchRequests); return this; } }
@Override public MultiSearchRequestBuilder prepareMultiSearch() { return new MultiSearchRequestBuilder(this, MultiSearchAction.INSTANCE); }
/** * Specifies what type of requested indices to ignore and how to deal with wildcard indices expressions. * For example indices that don't exist. * <p> * Invoke this method before invoking {@link #add(SearchRequestBuilder)}. */ public MultiSearchRequestBuilder setIndicesOptions(IndicesOptions indicesOptions) { request().indicesOptions(indicesOptions); return this; }