mirror of https://github.com/apache/lucene.git
force in-order merging for this test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1067427 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8c487e588c
commit
822eb32f37
|
@ -619,7 +619,7 @@ public class TestDeletionPolicy extends LuceneTestCase {
|
||||||
Directory dir = newDirectory();
|
Directory dir = newDirectory();
|
||||||
IndexWriterConfig conf = newIndexWriterConfig(
|
IndexWriterConfig conf = newIndexWriterConfig(
|
||||||
TEST_VERSION_CURRENT, new MockAnalyzer())
|
TEST_VERSION_CURRENT, new MockAnalyzer())
|
||||||
.setOpenMode(OpenMode.CREATE).setIndexDeletionPolicy(policy);
|
.setOpenMode(OpenMode.CREATE).setIndexDeletionPolicy(policy).setMergePolicy(newInOrderLogMergePolicy());
|
||||||
MergePolicy mp = conf.getMergePolicy();
|
MergePolicy mp = conf.getMergePolicy();
|
||||||
if (mp instanceof LogMergePolicy) {
|
if (mp instanceof LogMergePolicy) {
|
||||||
((LogMergePolicy) mp).setUseCompoundFile(useCompoundFile);
|
((LogMergePolicy) mp).setUseCompoundFile(useCompoundFile);
|
||||||
|
|
Loading…
Reference in New Issue