lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsing...@apache.org
Subject svn commit: r959441 - /lucene/dev/trunk/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java
Date Wed, 30 Jun 2010 21:32:31 GMT
Author: gsingers
Date: Wed Jun 30 21:32:30 2010
New Revision: 959441

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

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

Modified: lucene/dev/trunk/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java?rev=959441&r1=959440&r2=959441&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java
(original)
+++ lucene/dev/trunk/solr/src/test/org/apache/solr/handler/component/QueryElevationComponentTest.java
Wed Jun 30 21:32:30 2010
@@ -202,10 +202,11 @@ 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[] {} );
+    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



Mime
View raw message