Skip to content

Commit 1c36d33

Browse files
committed
Renamed and moved cluster feature
1 parent 6ff461d commit 1c36d33

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

x-pack/plugin/rank-rrf/src/main/java/org/elasticsearch/xpack/rank/RankRRFFeatures.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import org.elasticsearch.features.FeatureSpecification;
1111
import org.elasticsearch.features.NodeFeature;
12+
import org.elasticsearch.xpack.rank.linear.LinearRetrieverBuilder;
1213

1314
import java.util.Set;
1415

@@ -19,7 +20,6 @@
1920
public class RankRRFFeatures implements FeatureSpecification {
2021

2122
public static final NodeFeature LINEAR_RETRIEVER_SUPPORTED = new NodeFeature("linear_retriever_supported");
22-
public static final NodeFeature SIMPLIFIED_RETRIEVER_FORMAT = new NodeFeature("simplified_retriever_format");
2323

2424
@Override
2525
public Set<NodeFeature> getFeatures() {
@@ -32,7 +32,7 @@ public Set<NodeFeature> getTestFeatures() {
3232
INNER_RETRIEVERS_FILTER_SUPPORT,
3333
LINEAR_RETRIEVER_MINMAX_SINGLE_DOC_FIX,
3434
LINEAR_RETRIEVER_L2_NORM,
35-
SIMPLIFIED_RETRIEVER_FORMAT
35+
LinearRetrieverBuilder.MULTI_FIELDS_QUERY_FORMAT_SUPPORT
3636
);
3737
}
3838
}

x-pack/plugin/rank-rrf/src/main/java/org/elasticsearch/xpack/rank/linear/LinearRetrieverBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import org.elasticsearch.action.ResolvedIndices;
1313
import org.elasticsearch.common.ParsingException;
1414
import org.elasticsearch.common.util.Maps;
15+
import org.elasticsearch.features.NodeFeature;
1516
import org.elasticsearch.index.query.MatchNoneQueryBuilder;
1617
import org.elasticsearch.index.query.QueryBuilder;
1718
import org.elasticsearch.index.query.QueryRewriteContext;
@@ -53,6 +54,9 @@
5354
*
5455
*/
5556
public final class LinearRetrieverBuilder extends CompoundRetrieverBuilder<LinearRetrieverBuilder> {
57+
public static final NodeFeature MULTI_FIELDS_QUERY_FORMAT_SUPPORT = new NodeFeature(
58+
"linear_retriever.multi_fields_query_format_support"
59+
);
5660

5761
public static final String NAME = "linear";
5862

x-pack/plugin/rank-rrf/src/yamlRestTest/resources/rest-api-spec/test/linear/20_linear_retriever_simplified.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
setup:
22
- requires:
3-
cluster_features: [ "simplified_retriever_format" ]
4-
reason: "Simplified retriever format"
3+
cluster_features: [ "linear_retriever.multi_fields_query_format_support" ]
4+
reason: "Linear retriever multi-fields query format support"
55
test_runner_features: [ "close_to", "headers", "contains" ]
66

77
- do:

0 commit comments

Comments
 (0)