Skip to content

Commit

Permalink
Fix test that was implicitly assuming simple writer config that would…
Browse files Browse the repository at this point in the history
… not rearrange docids (#14122)
  • Loading branch information
msokolov authored Jan 8, 2025
1 parent 5fd2e70 commit 0169c1e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public void testIndexReorderSparse() throws Exception {
int maxDoc = 0;
try (Directory dir = newFSDirectory(tmpdir)) {
// create an index with a single leaf
try (IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig())) {
try (IndexWriter writer = new IndexWriter(dir, new IndexWriterConfig())) {
for (float[] vector : vectors) {
Document doc = new Document();
if (random().nextBoolean()) {
Expand All @@ -394,7 +394,6 @@ public void testIndexReorderSparse() throws Exception {
writer.addDocument(doc);
maxDoc++;
}
writer.forceMerge(1);
}
// reorder using the index reordering tool
BpVectorReorderer.main(
Expand Down

0 comments on commit 0169c1e

Please sign in to comment.