mirror of https://github.com/apache/lucene.git
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:
commit
42478556a5
|
@ -30,6 +30,7 @@ public class TestValueSource extends LuceneTestCase {
|
|||
public void testMultiValueSource() throws Exception {
|
||||
Directory dir = newDirectory();
|
||||
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();
|
||||
Field f = newField("field", "", Field.Store.NO, Field.Index.NOT_ANALYZED);
|
||||
doc.add(f);
|
||||
|
|
Loading…
Reference in New Issue