Skip to content

Commit baf3314

Browse files
authored
Merge branch 'main' into update-gradle-wrapper-921
2 parents 7db63e6 + fe1bf19 commit baf3314

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-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/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/date/DateDiffTests.java

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

1010
import com.carrotsearch.randomizedtesting.annotations.Name;
1111
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
12+
import com.carrotsearch.randomizedtesting.annotations.TimeoutSuite;
1213

14+
import org.apache.lucene.tests.util.TimeUnits;
1315
import org.apache.lucene.util.BytesRef;
1416
import org.elasticsearch.common.time.DateUtils;
1517
import org.elasticsearch.xpack.esql.core.expression.Expression;
@@ -31,6 +33,8 @@
3133
import static org.hamcrest.Matchers.equalTo;
3234
import static org.hamcrest.Matchers.startsWith;
3335

36+
// The amount of cases sometimes exceed the 20 minutes
37+
@TimeoutSuite(millis = 60 * TimeUnits.MINUTE)
3438
public class DateDiffTests extends AbstractConfigurationFunctionTestCase {
3539
public DateDiffTests(@Name("TestCase") Supplier<TestCaseSupplier.TestCase> testCaseSupplier) {
3640
this.testCase = testCaseSupplier.get();

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
@@ -42,6 +42,9 @@ public class InferenceFeatures implements FeatureSpecification {
4242
private static final NodeFeature SEMANTIC_TEXT_HIGHLIGHTER_DISKBBQ_SIMILARITY_SUPPORT = new NodeFeature(
4343
"semantic_text.highlighter.bbq_and_similarity_support"
4444
);
45+
private static final NodeFeature SEMANTIC_TEXT_HIGHLIGHTER_VECTOR_SIMILARITY_SUPPORT = new NodeFeature(
46+
"semantic_text.highlighter.vector_similarity_support"
47+
);
4548
private static final NodeFeature TEST_RERANKING_SERVICE_PARSE_TEXT_AS_SCORE = new NodeFeature(
4649
"test_reranking_service.parse_text_as_score"
4750
);
@@ -102,6 +105,7 @@ public Set<NodeFeature> getTestFeatures() {
102105
SEMANTIC_TEXT_FIELDS_CHUNKS_FORMAT,
103106
SEMANTIC_TEXT_UPDATABLE_INFERENCE_ID,
104107
SEMANTIC_TEXT_HIGHLIGHTER_DISKBBQ_SIMILARITY_SUPPORT,
108+
SEMANTIC_TEXT_HIGHLIGHTER_VECTOR_SIMILARITY_SUPPORT,
105109
SemanticQueryBuilder.SEMANTIC_QUERY_MULTIPLE_INFERENCE_IDS,
106110
SemanticQueryBuilder.SEMANTIC_QUERY_FILTER_FIELD_CAPS_FIX,
107111
InterceptedInferenceQueryBuilder.NEW_SEMANTIC_QUERY_INTERCEPTORS,

0 commit comments

Comments
 (0)