From 4a902f35db6c4758c1ae2da1b711494e73878c96 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Thu, 5 Apr 2018 12:23:41 +0200 Subject: [PATCH] LUCENE-8233: Use a consistent merge policy in test to make sure segment counts match --- .../lucene/index/TestSoftDeletesRetentionMergePolicy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestSoftDeletesRetentionMergePolicy.java b/lucene/core/src/test/org/apache/lucene/index/TestSoftDeletesRetentionMergePolicy.java index 3f4f4053885..3d8ffe3b158 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestSoftDeletesRetentionMergePolicy.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestSoftDeletesRetentionMergePolicy.java @@ -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);