mirror of https://github.com/apache/lucene.git
Ensure doc order for TestCommonTermsQuery#testMinShouldMatch (#13953)
This commit is contained in:
parent
e8c2218c3a
commit
ef2b8131cf
|
@ -194,7 +194,12 @@ public class TestCommonTermsQuery extends LuceneTestCase {
|
|||
public void testMinShouldMatch() throws IOException {
|
||||
Directory dir = newDirectory();
|
||||
MockAnalyzer analyzer = new MockAnalyzer(random());
|
||||
RandomIndexWriter w = new RandomIndexWriter(random(), dir, analyzer);
|
||||
RandomIndexWriter w =
|
||||
new RandomIndexWriter(
|
||||
random(),
|
||||
dir,
|
||||
LuceneTestCase.newIndexWriterConfig(analyzer)
|
||||
.setMergePolicy(LuceneTestCase.newMergePolicy(random(), false)));
|
||||
String[] docs =
|
||||
new String[] {
|
||||
"this is the end of the world right",
|
||||
|
|
Loading…
Reference in New Issue