SOLR-5140: pin TestGroupingSearch to use LogDocMergePolicy for predictable 'unordered' results

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1513297 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2013-08-12 23:40:12 +00:00
parent f28864213f
commit 7ed9edb532
1 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,7 @@
package org.apache.solr;
import org.apache.lucene.search.FieldCache;
import org.apache.lucene.index.LogDocMergePolicy;
import org.noggit.JSONUtil;
import org.noggit.ObjectBuilder;
import org.apache.solr.client.solrj.impl.BinaryResponseParser;
@ -54,6 +55,11 @@ public class TestGroupingSearch extends SolrTestCaseJ4 {
@BeforeClass
public static void beforeTests() throws Exception {
// force LogDocMergePolicy so that we get a predictable doc order
// when doing unsorted group collection
System.setProperty("solr.tests.mergePolicy",
LogDocMergePolicy.class.getName());
System.setProperty("enable.update.log", "false"); // schema12 doesn't support _version_
initCore("solrconfig.xml", "schema12.xml");
}