Skip to content

Commit e599a1a

Browse files
committed
BWC changes and more test cases added
1 parent 4c6afcf commit e599a1a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
package org.elasticsearch.action.admin.indices.resolve;
11+
12+
import org.elasticsearch.features.FeatureSpecification;
13+
import org.elasticsearch.features.NodeFeature;
14+
15+
import java.util.Set;
16+
17+
public class ResolveIndexFeatures implements FeatureSpecification {
18+
19+
// Feature published by nodes that return "mode" in indices.resolve_index responses.
20+
public static final NodeFeature RESOLVE_INDEX_RETURNS_MODE = new NodeFeature("resolve_index_returns_mode");
21+
22+
@Override
23+
public Set<NodeFeature> getFeatures() {
24+
return Set.of(RESOLVE_INDEX_RETURNS_MODE);
25+
}
26+
27+
@Override
28+
public Set<NodeFeature> getTestFeatures() {
29+
return Set.of(RESOLVE_INDEX_RETURNS_MODE);
30+
}
31+
32+
}

0 commit comments

Comments
 (0)