LUCENE-10016: fix test case to use the same similarity in both cases

This commit is contained in:
Michael Sokolov 2021-07-24 15:22:39 -04:00
parent df807dbe8f
commit 0ec93b632c
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public class TestHnsw extends LuceneTestCase {
indexedDoc++;
}
Document doc = new Document();
doc.add(new KnnVectorField("field", v2.vectorValue()));
doc.add(new KnnVectorField("field", v2.vectorValue(), similarityFunction));
doc.add(new StoredField("id", v2.docID()));
iw.addDocument(doc);
nVec++;