lazy set the indices on the search request now that its validated

This commit is contained in:
Shay Banon 2013-03-01 22:45:59 +01:00
parent 6687ecb038
commit fe8b3725bb
1 changed files with 4 additions and 1 deletions

View File

@ -89,7 +89,10 @@ public class MultiSearchRequest extends ActionRequest<MultiSearchRequest> {
continue; continue;
} }
SearchRequest searchRequest = new SearchRequest(indices); SearchRequest searchRequest = new SearchRequest();
if (indices != null) {
searchRequest.indices(indices);
}
if (ignoreIndices != null) { if (ignoreIndices != null) {
searchRequest.ignoreIndices(ignoreIndices); searchRequest.ignoreIndices(ignoreIndices);
} }