We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f991ed commit cc3b412Copy full SHA for cc3b412
lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java
@@ -154,7 +154,9 @@ private static void assertNeedsIndexSortMerge(
154
Sort indexSort = new Sort(sortField, new SortField("id", SortField.Type.INT));
155
iwc.setIndexSort(indexSort);
156
LogMergePolicy policy = newLogMergePolicy();
157
- // make sure that merge factor is always > 2
+ // make sure that merge factor is always > 2 and target search concurrency is no more than 1 to
158
+ // avoid creating merges that are accidentally sorted
159
+ policy.setTargetSearchConcurrency(1);
160
if (policy.getMergeFactor() <= 2) {
161
policy.setMergeFactor(3);
162
}
0 commit comments