mirror of https://github.com/apache/lucene.git
fix slow test: don't use postings formats whose Terms.getMax is slow for immense terms
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1687994 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2d0ac9bb7f
commit
23e4ca0c6d
|
@ -1638,7 +1638,10 @@ public class TestIndexWriter extends LuceneTestCase {
|
|||
Field contentField = new Field("content", "", customType);
|
||||
doc.add(contentField);
|
||||
|
||||
w = new RandomIndexWriter(random(), dir);
|
||||
IndexWriterConfig iwc = newIndexWriterConfig();
|
||||
iwc.setCodec(TestUtil.getDefaultCodec());
|
||||
|
||||
w = new RandomIndexWriter(random(), dir, iwc);
|
||||
|
||||
contentField.setStringValue("other");
|
||||
w.addDocument(doc);
|
||||
|
|
Loading…
Reference in New Issue