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