merge r1097187

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/realtime_search@1097228 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2011-04-27 20:14:30 +00:00
commit 42478556a5
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ public class TestValueSource extends LuceneTestCase {
public void testMultiValueSource() throws Exception { public void testMultiValueSource() throws Exception {
Directory dir = newDirectory(); Directory dir = newDirectory();
IndexWriter w = new IndexWriter(dir, new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)).setMergePolicy(newLogMergePolicy())); IndexWriter w = new IndexWriter(dir, new IndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)).setMergePolicy(newLogMergePolicy()));
((LogMergePolicy) w.getConfig().getMergePolicy()).setMergeFactor(_TestUtil.nextInt(random, 2, 16));
Document doc = new Document(); Document doc = new Document();
Field f = newField("field", "", Field.Store.NO, Field.Index.NOT_ANALYZED); Field f = newField("field", "", Field.Store.NO, Field.Index.NOT_ANALYZED);
doc.add(f); doc.add(f);