Skip to content

Commit 8b476fd

Browse files
committed
fix: add missing vector_similarity_support in InferenceFeatures (elastic#138644)
(cherry picked from commit fe1bf19)
1 parent 6dfddc4 commit 8b476fd

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docs/changelog/138644.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 138644
2+
summary: "Fix: add missing `vector_similarity_support` in InferenceFeatures"
3+
area: Search
4+
type: bug
5+
issues: []

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/InferenceFeatures.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ public class InferenceFeatures implements FeatureSpecification {
4040
private static final NodeFeature SEMANTIC_TEXT_HIGHLIGHTER_DISKBBQ_SIMILARITY_SUPPORT = new NodeFeature(
4141
"semantic_text.highlighter.bbq_and_similarity_support"
4242
);
43+
private static final NodeFeature SEMANTIC_TEXT_HIGHLIGHTER_VECTOR_SIMILARITY_SUPPORT = new NodeFeature(
44+
"semantic_text.highlighter.vector_similarity_support"
45+
);
4346
private static final NodeFeature TEST_RERANKING_SERVICE_PARSE_TEXT_AS_SCORE = new NodeFeature(
4447
"test_reranking_service.parse_text_as_score"
4548
);
@@ -97,6 +100,7 @@ public Set<NodeFeature> getTestFeatures() {
97100
SEMANTIC_TEXT_SPARSE_VECTOR_INDEX_OPTIONS,
98101
SEMANTIC_TEXT_FIELDS_CHUNKS_FORMAT,
99102
SEMANTIC_TEXT_HIGHLIGHTER_DISKBBQ_SIMILARITY_SUPPORT,
103+
SEMANTIC_TEXT_HIGHLIGHTER_VECTOR_SIMILARITY_SUPPORT,
100104
SemanticQueryBuilder.SEMANTIC_QUERY_MULTIPLE_INFERENCE_IDS,
101105
SemanticQueryBuilder.SEMANTIC_QUERY_FILTER_FIELD_CAPS_FIX,
102106
InterceptedInferenceQueryBuilder.NEW_SEMANTIC_QUERY_INTERCEPTORS,

0 commit comments

Comments
 (0)