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 2022/09/19 14:14:12 UTC

[lucene] branch branch_9_4 updated: Fix rare bug in TestKnnVectorQuery when we have multiple segments

This is an automated email from the ASF dual-hosted git repository.

sokolov pushed a commit to branch branch_9_4
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/branch_9_4 by this push:
     new bc1195b595d Fix rare bug in TestKnnVectorQuery when we have multiple segments
bc1195b595d is described below

commit bc1195b595d5b5f9758428609520287e796dd9c7
Author: Michael Sokolov <so...@amazon.com>
AuthorDate: Sun Sep 18 20:21:39 2022 +0000

    Fix rare bug in TestKnnVectorQuery when we have multiple segments
---
 lucene/core/src/test/org/apache/lucene/search/TestKnnVectorQuery.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/core/src/test/org/apache/lucene/search/TestKnnVectorQuery.java b/lucene/core/src/test/org/apache/lucene/search/TestKnnVectorQuery.java
index 88d2b3674fb..df7f03f1901 100644
--- a/lucene/core/src/test/org/apache/lucene/search/TestKnnVectorQuery.java
+++ b/lucene/core/src/test/org/apache/lucene/search/TestKnnVectorQuery.java
@@ -833,7 +833,7 @@ public class TestKnnVectorQuery extends LuceneTestCase {
    */
   private Directory getStableIndexStore(String field, float[]... contents) throws IOException {
     Directory indexStore = newDirectory();
-    try (IndexWriter writer = new IndexWriter(indexStore, newIndexWriterConfig())) {
+    try (IndexWriter writer = new IndexWriter(indexStore, new IndexWriterConfig())) {
       VectorEncoding encoding = randomVectorEncoding();
       for (int i = 0; i < contents.length; ++i) {
         Document doc = new Document();