SOLR-4952: TestIndexSearcher.testReopen needs fixed segment merging

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1511954 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2013-08-08 19:03:40 +00:00
parent 5a7ea774fd
commit 3231e204c4
1 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,7 @@
*/
package org.apache.solr.search;
import org.apache.lucene.index.LogDocMergePolicy;
import org.apache.lucene.index.AtomicReaderContext;
import org.apache.lucene.index.IndexReaderContext;
import org.apache.lucene.index.ReaderUtil;
@ -34,6 +35,11 @@ public class TestIndexSearcher extends SolrTestCaseJ4 {
@BeforeClass
public static void beforeClass() throws Exception {
// we need a consistent segmentation because reopen test validation
// dependso n merges not happening when it doesn't expect
System.setProperty("solr.tests.mergePolicy", LogDocMergePolicy.class.getName());
initCore("solrconfig.xml","schema.xml");
}