|
16 | 16 | */ |
17 | 17 | package org.apache.lucene.search; |
18 | 18 |
|
| 19 | +import static org.apache.lucene.codecs.lucene99.Lucene99HnswVectorsFormat.DEFAULT_BEAM_WIDTH; |
| 20 | +import static org.apache.lucene.codecs.lucene99.Lucene99HnswVectorsFormat.DEFAULT_MAX_CONN; |
| 21 | + |
19 | 22 | import java.io.IOException; |
20 | 23 | import java.util.concurrent.atomic.AtomicInteger; |
21 | 24 | import org.apache.lucene.codecs.lucene99.Lucene99HnswVectorsFormat; |
|
33 | 36 | import org.apache.lucene.tests.util.TestUtil; |
34 | 37 | import org.apache.lucene.util.TestVectorUtil; |
35 | 38 |
|
36 | | -import static org.apache.lucene.codecs.lucene99.Lucene99HnswVectorsFormat.DEFAULT_BEAM_WIDTH; |
37 | | -import static org.apache.lucene.codecs.lucene99.Lucene99HnswVectorsFormat.DEFAULT_MAX_CONN; |
38 | | - |
39 | 39 | public class TestSeededKnnFloatVectorQuery extends BaseKnnVectorQueryTestCase { |
40 | 40 | private static final Query MATCH_NONE = new MatchNoDocsQuery(); |
41 | 41 |
|
@@ -128,7 +128,11 @@ public void testRandomWithSeed() throws IOException { |
128 | 128 | // visitedLimit. This is fine since the test targets AbstractKnnVectorQuery logic, not the kNN |
129 | 129 | // format |
130 | 130 | // implementation. |
131 | | - IndexWriterConfig iwc = new IndexWriterConfig().setCodec(TestUtil.alwaysKnnVectorsFormat(new Lucene99HnswVectorsFormat(DEFAULT_MAX_CONN, DEFAULT_BEAM_WIDTH, -1))); |
| 131 | + IndexWriterConfig iwc = |
| 132 | + new IndexWriterConfig() |
| 133 | + .setCodec( |
| 134 | + TestUtil.alwaysKnnVectorsFormat( |
| 135 | + new Lucene99HnswVectorsFormat(DEFAULT_MAX_CONN, DEFAULT_BEAM_WIDTH, -1))); |
132 | 136 | RandomIndexWriter w = new RandomIndexWriter(random(), d, iwc); |
133 | 137 | for (int i = 0; i < numDocs; i++) { |
134 | 138 | Document doc = new Document(); |
|
0 commit comments