From 19fe1a56f7add4b1601037d11a097c0f1c10036b Mon Sep 17 00:00:00 2001 From: Benjamin Trent Date: Sat, 29 Jun 2024 13:54:32 -0400 Subject: [PATCH] Fix more vector similarity query tests (#13530) --- .../apache/lucene/search/BaseVectorSimilarityQueryTestCase.java | 1 + 1 file changed, 1 insertion(+) diff --git a/lucene/core/src/test/org/apache/lucene/search/BaseVectorSimilarityQueryTestCase.java b/lucene/core/src/test/org/apache/lucene/search/BaseVectorSimilarityQueryTestCase.java index f0bce64acd0..3347b9478dd 100644 --- a/lucene/core/src/test/org/apache/lucene/search/BaseVectorSimilarityQueryTestCase.java +++ b/lucene/core/src/test/org/apache/lucene/search/BaseVectorSimilarityQueryTestCase.java @@ -131,6 +131,7 @@ abstract class BaseVectorSimilarityQueryTestCase< try (Directory indexStore = getIndexStore(getRandomVectors(numDocs, dim)); IndexReader reader = DirectoryReader.open(indexStore)) { IndexSearcher searcher = newSearcher(reader); + assumeTrue("graph is disconnected", HnswTestUtil.graphIsConnected(reader, vectorField)); // All vectors are above -Infinity Query query1 =