Fix off-by-one in TestDemo.testKnnVectorSearch

This commit is contained in:
Michael Sokolov 2021-08-21 14:22:47 -04:00
parent c36495dce7
commit 054b444c14
1 changed files with 1 additions and 1 deletions

View File

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