You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by gs...@apache.org on 2010/06/30 23:33:19 UTC

svn commit: r959443 - /lucene/dev/branches/branch_3x/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java

Author: gsingers
Date: Wed Jun 30 21:33:19 2010
New Revision: 959443

URL: http://svn.apache.org/viewvc?rev=959443&view=rev
Log:
SOLR-1966: check two results instead of one

Modified:
    lucene/dev/branches/branch_3x/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java

Modified: lucene/dev/branches/branch_3x/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java?rev=959443&r1=959442&r2=959443&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java (original)
+++ lucene/dev/branches/branch_3x/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java Wed Jun 30 21:33:19 2010
@@ -203,12 +203,12 @@ public class QueryElevationComponentTest
 
     //Test exclusive (not to be confused with exclusion)
     args.put(QueryElevationParams.EXCLUSIVE, "true");
-    booster.setTopQueryResults( reader, query, new String[] { "x" },  new String[] {} );
-    assertQ( null, req
-        ,"//*[@numFound='1']"
-        ,"//result/doc[1]/str[@name='id'][.='x']"
-        );
-
+	booster.setTopQueryResults( reader, query, new String[] { "x", "a" },  new String[] {} );
+	assertQ( null, req
+	    ,"//*[@numFound='2']"
+	    ,"//result/doc[1]/str[@name='id'][.='x']"
+	    ,"//result/doc[2]/str[@name='id'][.='a']"            
+	    );
     // Test exclusion
     booster.elevationCache.clear();
     args.remove( CommonParams.SORT );