You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by so...@apache.org on 2025/10/08 11:19:37 UTC
(lucene) branch 15212-speed-up-slow-tests updated: reduce numdocs in TestBPReorderingMergePolicy
This is an automated email from the ASF dual-hosted git repository.
sokolov pushed a commit to branch 15212-speed-up-slow-tests
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/15212-speed-up-slow-tests by this push:
new 3fcdf625a21 reduce numdocs in TestBPReorderingMergePolicy
3fcdf625a21 is described below
commit 3fcdf625a213f9fe05f08c29722334acd6b6f8d2
Author: Michael Sokolov <so...@amazon.com>
AuthorDate: Wed Oct 8 07:19:29 2025 -0400
reduce numdocs in TestBPReorderingMergePolicy
---
.../org/apache/lucene/misc/index/TestBPReorderingMergePolicy.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lucene/misc/src/test/org/apache/lucene/misc/index/TestBPReorderingMergePolicy.java b/lucene/misc/src/test/org/apache/lucene/misc/index/TestBPReorderingMergePolicy.java
index fd9a5fbdb44..c59420e1a9d 100644
--- a/lucene/misc/src/test/org/apache/lucene/misc/index/TestBPReorderingMergePolicy.java
+++ b/lucene/misc/src/test/org/apache/lucene/misc/index/TestBPReorderingMergePolicy.java
@@ -73,7 +73,7 @@ public class TestBPReorderingMergePolicy extends LuceneTestCase {
KnnFloatVectorField vectorField = new KnnFloatVectorField("vector", new float[] {0});
doc.add(vectorField);
- for (int i = 0; i < 10000; ++i) {
+ for (int i = 0; i < 1000; ++i) {
idField.setStringValue(Integer.toString(i));
int intValue = i % 2 == 0 ? 0 : i % 10;
bodyField.setStringValue(Integer.toString(intValue));
@@ -154,7 +154,7 @@ public class TestBPReorderingMergePolicy extends LuceneTestCase {
KnnFloatVectorField vectorField = new KnnFloatVectorField("vector", new float[] {0});
doc.add(vectorField);
- for (int i = 0; i < 10000; ++i) {
+ for (int i = 0; i < 1000; ++i) {
idField.setStringValue(Integer.toString(i));
int intValue = i % 2 == 0 ? 0 : i % 10;
bodyField.setStringValue(Integer.toString(intValue));
@@ -167,7 +167,7 @@ public class TestBPReorderingMergePolicy extends LuceneTestCase {
}
}
- for (int i = 0; i < 10000; i += 10) {
+ for (int i = 0; i < 1000; i += 10) {
w1.deleteDocuments(new Term("id", Integer.toString(i / 3)));
}