mirror of https://github.com/apache/lucene.git
SOLR-2949: add sort by id to test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1302661 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7cc0e9683e
commit
a1538c6853
|
@ -363,8 +363,17 @@ public class QueryElevationComponentTest extends SolrTestCaseJ4 {
|
|||
, "//result/doc[3]/str[@name='id'][.='c']"
|
||||
, "//result/doc[4]/str[@name='id'][.='x']"
|
||||
);
|
||||
args.put(CommonParams.SORT, "id asc");
|
||||
assertQ(null, req
|
||||
, "//*[@numFound='4']"
|
||||
, "//result/doc[1]/str[@name='id'][.='a']"
|
||||
, "//result/doc[2]/str[@name='id'][.='b']"
|
||||
, "//result/doc[3]/str[@name='id'][.='c']"
|
||||
, "//result/doc[4]/str[@name='id'][.='x']"
|
||||
);
|
||||
|
||||
booster.forceElevation = true;
|
||||
args.put(CommonParams.SORT, "id asc");
|
||||
assertQ(null, req
|
||||
, "//*[@numFound='4']"
|
||||
, "//result/doc[1]/str[@name='id'][.='a']"
|
||||
|
|
Loading…
Reference in New Issue