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:
Yonik Seeley 2012-03-19 21:22:56 +00:00
parent 7cc0e9683e
commit a1538c6853
1 changed files with 9 additions and 0 deletions

View File

@ -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']"