lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r806599 - /lucene/java/trunk/src/test/org/apache/lucene/search/payloads/TestBoostingNearQuery.java
Date Fri, 21 Aug 2009 15:26:11 GMT
Author: markrmiller
Date: Fri Aug 21 15:26:06 2009
New Revision: 806599

URL: http://svn.apache.org/viewvc?rev=806599&view=rev
Log:
check BoostingNearQuery with QueryUtils

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/search/payloads/TestBoostingNearQuery.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/payloads/TestBoostingNearQuery.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/search/payloads/TestBoostingNearQuery.java?rev=806599&r1=806598&r2=806599&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/payloads/TestBoostingNearQuery.java
(original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/payloads/TestBoostingNearQuery.java
Fri Aug 21 15:26:06 2009
@@ -32,6 +32,7 @@
 import org.apache.lucene.index.Term;
 import org.apache.lucene.search.DefaultSimilarity;
 import org.apache.lucene.search.IndexSearcher;
+import org.apache.lucene.search.QueryUtils;
 import org.apache.lucene.search.ScoreDoc;
 import org.apache.lucene.search.Searcher;
 import org.apache.lucene.search.TopDocs;
@@ -120,6 +121,8 @@
 		TopDocs hits;
 
 		query = newPhraseQuery("field", "twenty two", true);
+		QueryUtils.check(query);
+		
 		// all 10 hits should have score = 3 because adjacent terms have payloads of 2,4
 		// and all the similarity factors are set to 1
 		hits = searcher.search(query, null, 100);



Mime
View raw message