mirror of https://github.com/apache/lucene.git
LUCENE-8233: Use a consistent merge policy in test to make sure segment counts match
This commit is contained in:
parent
60ae7be407
commit
4a902f35db
|
@ -159,7 +159,7 @@ public class TestSoftDeletesRetentionMergePolicy extends LuceneTestCase {
|
|||
IndexWriterConfig indexWriterConfig = newIndexWriterConfig();
|
||||
indexWriterConfig.setMergePolicy(new SoftDeletesRetentionMergePolicy("soft_delete",
|
||||
() -> new MatchAllDocsQuery(),
|
||||
indexWriterConfig.getMergePolicy()));
|
||||
new LogDocMergePolicy()));
|
||||
indexWriterConfig.setSoftDeletesField("soft_delete");
|
||||
IndexWriter writer = new IndexWriter(dir, indexWriterConfig);
|
||||
|
||||
|
|
Loading…
Reference in New Issue