Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected Map<String, Function<Map<String, Object>, 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))
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<VectorIndexType> 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();
}
Expand All @@ -1686,6 +1691,10 @@ public boolean isQuantized() {
return quantized;
}

public boolean isEnabled() {
return true;
}

public String getName() {
return name;
}
Expand Down