Skip to content

Commit df73d11

Browse files
committed
tidy
1 parent 2d00b78 commit df73d11

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

lucene/core/src/test/org/apache/lucene/search/TestSeededKnnByteVectorQuery.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,11 @@ public void testRandomWithSeed() throws IOException {
140140
// visitedLimit. This is fine since the test targets AbstractKnnVectorQuery logic, not the kNN
141141
// format
142142
// implementation.
143-
IndexWriterConfig iwc = new IndexWriterConfig().setCodec(TestUtil.alwaysKnnVectorsFormat(new Lucene99HnswVectorsFormat(DEFAULT_MAX_CONN, DEFAULT_BEAM_WIDTH, -1)));
143+
IndexWriterConfig iwc =
144+
new IndexWriterConfig()
145+
.setCodec(
146+
TestUtil.alwaysKnnVectorsFormat(
147+
new Lucene99HnswVectorsFormat(DEFAULT_MAX_CONN, DEFAULT_BEAM_WIDTH, -1)));
144148
RandomIndexWriter w = new RandomIndexWriter(random(), d, iwc);
145149
for (int i = 0; i < numDocs; i++) {
146150
Document doc = new Document();

lucene/core/src/test/org/apache/lucene/search/TestSeededKnnFloatVectorQuery.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
*/
1717
package org.apache.lucene.search;
1818

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+
1922
import java.io.IOException;
2023
import java.util.concurrent.atomic.AtomicInteger;
2124
import org.apache.lucene.codecs.lucene99.Lucene99HnswVectorsFormat;
@@ -33,9 +36,6 @@
3336
import org.apache.lucene.tests.util.TestUtil;
3437
import org.apache.lucene.util.TestVectorUtil;
3538

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-
3939
public class TestSeededKnnFloatVectorQuery extends BaseKnnVectorQueryTestCase {
4040
private static final Query MATCH_NONE = new MatchNoDocsQuery();
4141

@@ -128,7 +128,11 @@ public void testRandomWithSeed() throws IOException {
128128
// visitedLimit. This is fine since the test targets AbstractKnnVectorQuery logic, not the kNN
129129
// format
130130
// 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)));
132136
RandomIndexWriter w = new RandomIndexWriter(random(), d, iwc);
133137
for (int i = 0; i < numDocs; i++) {
134138
Document doc = new Document();

0 commit comments

Comments
 (0)