Skip to content

Commit 9b02a48

Browse files
committed
Change to a mapper feature rather than search feature
1 parent a59d736 commit 9b02a48

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/41_knn_search_bbq_hnsw.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ setup:
340340
---
341341
"Test index configured rescore vector with no off-heap scoring":
342342
- requires:
343-
cluster_features: ["search.vectors.bbq_offheap_rescoring"]
343+
cluster_features: ["mapper.vectors.bbq_offheap_rescoring"]
344344
reason: Needs bbq_offheap_rescoring feature
345345
- skip:
346346
features: "headers"

server/src/main/java/org/elasticsearch/index/mapper/MapperFeatures.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public class MapperFeatures implements FeatureSpecification {
4747
static final NodeFeature BBQ_DISK_SUPPORT = new NodeFeature("mapper.bbq_disk_support");
4848
static final NodeFeature SEARCH_LOAD_PER_SHARD = new NodeFeature("mapper.search_load_per_shard");
4949
static final NodeFeature PATTERNED_TEXT = new NodeFeature("mapper.patterned_text");
50+
static final NodeFeature BBQ_OFFHEAP_RESCORING = new NodeFeature("mapper.vectors.bbq_offheap_rescoring");
5051

5152
@Override
5253
public Set<NodeFeature> getTestFeatures() {
@@ -80,7 +81,8 @@ public Set<NodeFeature> getTestFeatures() {
8081
BBQ_DISK_SUPPORT,
8182
SEARCH_LOAD_PER_SHARD,
8283
SPARSE_VECTOR_INDEX_OPTIONS_FEATURE,
83-
PATTERNED_TEXT
84+
PATTERNED_TEXT,
85+
BBQ_OFFHEAP_RESCORING
8486
);
8587
}
8688
}

server/src/main/java/org/elasticsearch/search/SearchFeatures.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ public Set<NodeFeature> getFeatures() {
3333
static final NodeFeature MULTI_MATCH_CHECKS_POSITIONS = new NodeFeature("search.multi.match.checks.positions");
3434
public static final NodeFeature BBQ_HNSW_DEFAULT_INDEXING = new NodeFeature("search.vectors.mappers.default_bbq_hnsw");
3535
public static final NodeFeature SEARCH_WITH_NO_DIMENSIONS_BUGFIX = new NodeFeature("search.vectors.no_dimensions_bugfix");
36-
public static final NodeFeature BBQ_OFFHEAP_RESCORING = new NodeFeature("search.vectors.bbq_offheap_rescoring");
3736

3837
@Override
3938
public Set<NodeFeature> getTestFeatures() {
@@ -44,8 +43,7 @@ public Set<NodeFeature> getTestFeatures() {
4443
INT_SORT_FOR_INT_SHORT_BYTE_FIELDS,
4544
MULTI_MATCH_CHECKS_POSITIONS,
4645
BBQ_HNSW_DEFAULT_INDEXING,
47-
SEARCH_WITH_NO_DIMENSIONS_BUGFIX,
48-
BBQ_OFFHEAP_RESCORING
46+
SEARCH_WITH_NO_DIMENSIONS_BUGFIX
4947
);
5048
}
5149
}

0 commit comments

Comments
 (0)