Apache Lucene open-source search software
SOLR-1966: check two results instead of one
Grant Ingersollc938fb559337
diff --git a/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java b/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.javaindex 516581da446..2ed52df9a7f 100644--- a/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java+++ b/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java@@ -202,10 +202,11 @@ public class QueryElevationComponentTest extends SolrTestCaseJ4 {//Test exclusive (not to be confused with exclusion)args.put(QueryElevationParams.EXCLUSIVE, "true");- booster.setTopQueryResults( reader, query, new String[] { "x" }, new String[] {} );+ booster.setTopQueryResults( reader, query, new String[] { "x", "a" }, new String[] {} );assertQ( null, req- ,"//*[@numFound='1']"+ ,"//*[@numFound='2']","//result/doc[1]/str[@name='id'][.='x']"+ ,"//result/doc[2]/str[@name='id'][.='a']");// Test exclusion