mirror of https://github.com/apache/lucene.git
Do not use mock merge policy for TestGrouping (#13034)
This commit is contained in:
parent
a9480316e2
commit
fb5037f841
|
@ -611,7 +611,11 @@ public class TestGrouping extends LuceneTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
RandomIndexWriter w =
|
RandomIndexWriter w =
|
||||||
new RandomIndexWriter(random(), dir, newIndexWriterConfig(new MockAnalyzer(random())));
|
new RandomIndexWriter(
|
||||||
|
random(),
|
||||||
|
dir,
|
||||||
|
newIndexWriterConfig(new MockAnalyzer(random()))
|
||||||
|
.setMergePolicy(newMergePolicy(random(), false)));
|
||||||
|
|
||||||
final List<List<Document>> updateDocs = new ArrayList<>();
|
final List<List<Document>> updateDocs = new ArrayList<>();
|
||||||
|
|
||||||
|
@ -731,7 +735,11 @@ public class TestGrouping extends LuceneTestCase {
|
||||||
|
|
||||||
Directory dir = newDirectory();
|
Directory dir = newDirectory();
|
||||||
RandomIndexWriter w =
|
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 doc = new Document();
|
||||||
Document docNoGroup = new Document();
|
Document docNoGroup = new Document();
|
||||||
Field idvGroupField = new SortedDocValuesField("group", new BytesRef());
|
Field idvGroupField = new SortedDocValuesField("group", new BytesRef());
|
||||||
|
|
Loading…
Reference in New Issue