From fb5037f841bee89fc36b5359ef0a7746b0a99b89 Mon Sep 17 00:00:00 2001 From: Benjamin Trent Date: Fri, 26 Jan 2024 07:16:27 -0500 Subject: [PATCH] Do not use mock merge policy for TestGrouping (#13034) --- .../apache/lucene/search/grouping/TestGrouping.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lucene/grouping/src/test/org/apache/lucene/search/grouping/TestGrouping.java b/lucene/grouping/src/test/org/apache/lucene/search/grouping/TestGrouping.java index 88877d0700b..089e1ca41f8 100644 --- a/lucene/grouping/src/test/org/apache/lucene/search/grouping/TestGrouping.java +++ b/lucene/grouping/src/test/org/apache/lucene/search/grouping/TestGrouping.java @@ -611,7 +611,11 @@ public class TestGrouping extends LuceneTestCase { } RandomIndexWriter w = - new RandomIndexWriter(random(), dir, newIndexWriterConfig(new MockAnalyzer(random()))); + new RandomIndexWriter( + random(), + dir, + newIndexWriterConfig(new MockAnalyzer(random())) + .setMergePolicy(newMergePolicy(random(), false))); final List> updateDocs = new ArrayList<>(); @@ -731,7 +735,11 @@ public class TestGrouping extends LuceneTestCase { Directory dir = newDirectory(); RandomIndexWriter w = - new RandomIndexWriter(random(), dir, newIndexWriterConfig(new MockAnalyzer(random()))); + new RandomIndexWriter( + random(), + dir, + newIndexWriterConfig(new MockAnalyzer(random())) + .setMergePolicy(newMergePolicy(random(), false))); Document doc = new Document(); Document docNoGroup = new Document(); Field idvGroupField = new SortedDocValuesField("group", new BytesRef());