FieldCapabilitiesRequest should implements Replaceable since it accepts index patterns

This commit is contained in:
Jim Ferenczi 2017-03-31 20:21:06 +02:00
parent f720767cbc
commit ee68e75332
1 changed files with 3 additions and 2 deletions

View File

@ -38,7 +38,8 @@ import java.util.Set;
import static org.elasticsearch.common.xcontent.ObjectParser.fromList;
public class FieldCapabilitiesRequest extends ActionRequest implements IndicesRequest {
public class FieldCapabilitiesRequest extends ActionRequest
implements IndicesRequest.Replaceable {
public static final ParseField FIELDS_FIELD = new ParseField("fields");
public static final String NAME = "field_caps_request";
private String[] indices = Strings.EMPTY_ARRAY;
@ -91,7 +92,7 @@ public class FieldCapabilitiesRequest extends ActionRequest implements IndicesRe
*
* The list of indices to lookup
*/
public FieldCapabilitiesRequest indices(String[] indices) {
public FieldCapabilitiesRequest indices(String... indices) {
this.indices = indices;
return this;
}