mirror of https://github.com/apache/lucene.git
LUCENE-10016: fix test case to use the same similarity in both cases
This commit is contained in:
parent
df807dbe8f
commit
0ec93b632c
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue