diff --git a/muted-tests.yml b/muted-tests.yml index 688ded4b63053..036a798e59acc 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -559,21 +559,18 @@ tests: - class: org.elasticsearch.test.apmintegration.TracesApmIT method: testApmIntegration issue: https://github.com/elastic/elasticsearch/issues/129651 -- class: org.elasticsearch.search.query.RescoreKnnVectorQueryIT - method: testKnnSearchRescore - issue: https://github.com/elastic/elasticsearch/issues/129713 - class: org.elasticsearch.snapshots.SnapshotShutdownIT method: testSnapshotShutdownProgressTracker issue: https://github.com/elastic/elasticsearch/issues/129752 - class: org.elasticsearch.xpack.security.SecurityRolesMultiProjectIT method: testUpdatingFileBasedRoleAffectsAllProjects issue: https://github.com/elastic/elasticsearch/issues/129775 -- class: org.elasticsearch.search.query.RescoreKnnVectorQueryIT - method: testKnnQueryRescore - issue: https://github.com/elastic/elasticsearch/issues/129809 -- class: org.elasticsearch.search.query.RescoreKnnVectorQueryIT - method: testKnnRetriever - issue: https://github.com/elastic/elasticsearch/issues/129818 +- class: org.elasticsearch.qa.verify_version_constants.VerifyVersionConstantsIT + method: testLuceneVersionConstant + issue: https://github.com/elastic/elasticsearch/issues/125638 +- class: org.elasticsearch.xpack.esql.qa.single_node.GenerativeIT + method: test + issue: https://github.com/elastic/elasticsearch/issues/129819 - class: org.elasticsearch.index.engine.ThreadPoolMergeExecutorServiceDiskSpaceTests method: testAbortingOrRunningMergeTaskHoldsUpBudget issue: https://github.com/elastic/elasticsearch/issues/129823 diff --git a/server/src/internalClusterTest/java/org/elasticsearch/search/query/RescoreKnnVectorQueryIT.java b/server/src/internalClusterTest/java/org/elasticsearch/search/query/RescoreKnnVectorQueryIT.java index c8812cfc109f2..453812c0566f7 100644 --- a/server/src/internalClusterTest/java/org/elasticsearch/search/query/RescoreKnnVectorQueryIT.java +++ b/server/src/internalClusterTest/java/org/elasticsearch/search/query/RescoreKnnVectorQueryIT.java @@ -85,7 +85,7 @@ protected Map, Object>> pluginScripts() { public void setup() throws IOException { String type = randomFrom( Arrays.stream(VectorIndexType.values()) - .filter(VectorIndexType::isQuantized) + .filter(t -> t.isQuantized() && t.isEnabled()) .map(t -> t.name().toLowerCase(Locale.ROOT)) .collect(Collectors.toCollection(ArrayList::new)) ); diff --git a/server/src/main/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapper.java b/server/src/main/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapper.java index 54c61a105feb4..2c8484cf77a38 100644 --- a/server/src/main/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapper.java +++ b/server/src/main/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapper.java @@ -1655,11 +1655,16 @@ public boolean supportsElementType(ElementType elementType) { public boolean supportsDimension(int dims) { return true; } + + @Override + public boolean isEnabled() { + return IVF_FORMAT.isEnabled(); + } }; public static Optional fromString(String type) { return Stream.of(VectorIndexType.values()) - .filter(vectorIndexType -> vectorIndexType != VectorIndexType.BBQ_IVF || IVF_FORMAT.isEnabled()) + .filter(VectorIndexType::isEnabled) .filter(vectorIndexType -> vectorIndexType.name.equals(type)) .findFirst(); } @@ -1686,6 +1691,10 @@ public boolean isQuantized() { return quantized; } + public boolean isEnabled() { + return true; + } + public String getName() { return name; }