You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by so...@apache.org on 2021/07/24 19:23:34 UTC
[lucene] branch main updated: LUCENE-10016: fix test case to use
the same similarity in both cases
This is an automated email from the ASF dual-hosted git repository.
sokolov pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/main by this push:
new 0ec93b6 LUCENE-10016: fix test case to use the same similarity in both cases
0ec93b6 is described below
commit 0ec93b632ce0be880a1e68902bccd07bae65602d
Author: Michael Sokolov <so...@amazon.com>
AuthorDate: Sat Jul 24 15:22:39 2021 -0400
LUCENE-10016: fix test case to use the same similarity in both cases
---
lucene/core/src/test/org/apache/lucene/util/hnsw/TestHnsw.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lucene/core/src/test/org/apache/lucene/util/hnsw/TestHnsw.java b/lucene/core/src/test/org/apache/lucene/util/hnsw/TestHnsw.java
index 3fa9408..676cae8 100644
--- a/lucene/core/src/test/org/apache/lucene/util/hnsw/TestHnsw.java
+++ b/lucene/core/src/test/org/apache/lucene/util/hnsw/TestHnsw.java
@@ -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++;