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:
Michael McCandless 2015-06-28 08:47:12 +00:00
parent 2d0ac9bb7f
commit 23e4ca0c6d
1 changed files with 4 additions and 1 deletions

View File

@ -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);