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/08/21 18:23:24 UTC

[lucene] branch main updated: Fix off-by-one in TestDemo.testKnnVectorSearch

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 054b444  Fix off-by-one in TestDemo.testKnnVectorSearch
054b444 is described below

commit 054b444c14e410a179bbfb8c85450c63e9e4a595
Author: Michael Sokolov <so...@amazon.com>
AuthorDate: Sat Aug 21 14:22:47 2021 -0400

    Fix off-by-one in TestDemo.testKnnVectorSearch
---
 lucene/demo/src/test/org/apache/lucene/demo/TestDemo.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/demo/src/test/org/apache/lucene/demo/TestDemo.java b/lucene/demo/src/test/org/apache/lucene/demo/TestDemo.java
index 8a2ad50..da32695 100644
--- a/lucene/demo/src/test/org/apache/lucene/demo/TestDemo.java
+++ b/lucene/demo/src/test/org/apache/lucene/demo/TestDemo.java
@@ -108,7 +108,7 @@ public class TestDemo extends LuceneTestCase {
     testVectorSearch(indexDir, "apache", 3, 4);
     testVectorSearch(indexDir, "gnu", 6, 7);
     testVectorSearch(indexDir, "derivative", 8, 9);
-    testVectorSearch(indexDir, "patent", 9, 10);
+    testVectorSearch(indexDir, "patent", 8, 9);
     testVectorSearch(indexDir, "license", 13, 14);
 
     // this matched 0 by token; semantic matching always adds one