Fix more vector similarity query tests (#13530)

This commit is contained in:
Benjamin Trent 2024-06-29 13:54:32 -04:00 committed by GitHub
parent 44ad4d95c6
commit 19fe1a56f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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 =