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();