mirror of https://github.com/apache/lucene.git
Do not use mock merge policy for TestSimilarity (#13314)
This commit is contained in:
parent
f665bd196e
commit
1f1181a079
|
@ -60,7 +60,9 @@ public class TestSimilarity extends LuceneTestCase {
|
|||
new RandomIndexWriter(
|
||||
random(),
|
||||
store,
|
||||
newIndexWriterConfig(new MockAnalyzer(random())).setSimilarity(new SimpleSimilarity()));
|
||||
newIndexWriterConfig(new MockAnalyzer(random()))
|
||||
.setSimilarity(new SimpleSimilarity())
|
||||
.setMergePolicy(newMergePolicy(random(), false)));
|
||||
|
||||
Document d1 = new Document();
|
||||
d1.add(newTextField("field", "a c", Field.Store.YES));
|
||||
|
|
Loading…
Reference in New Issue