|
@@ -8,6 +8,7 @@ package org.elasticsearch.xpack.rollup.rest;
|
|
import org.elasticsearch.action.support.IndicesOptions;
|
|
import org.elasticsearch.action.support.IndicesOptions;
|
|
import org.elasticsearch.client.node.NodeClient;
|
|
import org.elasticsearch.client.node.NodeClient;
|
|
import org.elasticsearch.common.ParseField;
|
|
import org.elasticsearch.common.ParseField;
|
|
|
|
+import org.elasticsearch.common.Strings;
|
|
import org.elasticsearch.common.settings.Settings;
|
|
import org.elasticsearch.common.settings.Settings;
|
|
import org.elasticsearch.rest.BaseRestHandler;
|
|
import org.elasticsearch.rest.BaseRestHandler;
|
|
import org.elasticsearch.rest.RestController;
|
|
import org.elasticsearch.rest.RestController;
|
|
@@ -27,7 +28,8 @@ public class RestGetRollupIndexCapsAction extends BaseRestHandler {
|
|
protected RestChannelConsumer prepareRequest(RestRequest restRequest, NodeClient client) {
|
|
protected RestChannelConsumer prepareRequest(RestRequest restRequest, NodeClient client) {
|
|
String index = restRequest.param(INDEX.getPreferredName());
|
|
String index = restRequest.param(INDEX.getPreferredName());
|
|
IndicesOptions options = IndicesOptions.fromRequest(restRequest, IndicesOptions.STRICT_EXPAND_OPEN_FORBID_CLOSED);
|
|
IndicesOptions options = IndicesOptions.fromRequest(restRequest, IndicesOptions.STRICT_EXPAND_OPEN_FORBID_CLOSED);
|
|
- GetRollupIndexCapsAction.Request request = new GetRollupIndexCapsAction.Request(new String[]{index}, options);
|
|
|
|
|
|
+ GetRollupIndexCapsAction.Request request =
|
|
|
|
+ new GetRollupIndexCapsAction.Request(Strings.splitStringByCommaToArray(index), options);
|
|
return channel -> client.execute(GetRollupIndexCapsAction.INSTANCE, request, new RestToXContentListener<>(channel));
|
|
return channel -> client.execute(GetRollupIndexCapsAction.INSTANCE, request, new RestToXContentListener<>(channel));
|
|
}
|
|
}
|
|
|
|
|