Skip to content

Commit 46bd54d

Browse files
committed
register test feature for sparse vector
1 parent 0ce5679 commit 46bd54d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/XPackFeatures.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
import java.util.Set;
1414

15+
import static org.elasticsearch.index.mapper.vectors.SparseVectorFieldMapper.SPARSE_VECTOR_INDEX_OPTIONS_FEATURE;
16+
1517
/**
1618
* Provides the XPack features that this version of the code supports
1719
*/
@@ -20,4 +22,9 @@ public class XPackFeatures implements FeatureSpecification {
2022
public Set<NodeFeature> getFeatures() {
2123
return Set.of();
2224
}
25+
26+
@Override
27+
public Set<NodeFeature> getTestFeatures() {
28+
return Set.of(SPARSE_VECTOR_INDEX_OPTIONS_FEATURE);
29+
}
2330
}

0 commit comments

Comments
 (0)