mirror of https://github.com/apache/lucene.git
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:
parent
5a7ea774fd
commit
3231e204c4
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue