mirror of https://github.com/apache/lucene.git
sorry!
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1377405 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ccd6a2ca54
commit
6fbeade64b
|
@ -337,9 +337,11 @@ public class TestIndexWriterConfig extends LuceneTestCase {
|
|||
((LogMergePolicy) iwc.getMergePolicy()).setUseCompoundFile(false);
|
||||
IndexWriter w = new IndexWriter(dir, iwc);
|
||||
|
||||
// Change to true:
|
||||
LogMergePolicy lmp = ((LogMergePolicy) w.getConfig().getMergePolicy());
|
||||
lmp.setNoCFSRatio(1.0);
|
||||
lmp.setMaxCFSSegmentSizeMB(Double.POSITIVE_INFINITY);
|
||||
lmp.setUseCompoundFile(true);
|
||||
|
||||
Document doc = new Document();
|
||||
doc.add(newStringField("field", "foo", Store.NO));
|
||||
|
|
Loading…
Reference in New Issue