mirror of https://github.com/apache/lucene.git
Fix rare bug in TestKnnVectorQuery when we have multiple segments
This commit is contained in:
parent
451bab300e
commit
e69c48b8d9
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue