lazy set the indices on the search request now that its validated
This commit is contained in:
parent
6687ecb038
commit
fe8b3725bb
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue