You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by ma...@apache.org on 2009/08/18 05:48:44 UTC
svn commit: r805268 -
/lucene/java/trunk/src/test/org/apache/lucene/search/TestQueryWrapperFilter.java
Author: markrmiller
Date: Tue Aug 18 03:48:44 2009
New Revision: 805268
URL: http://svn.apache.org/viewvc?rev=805268&view=rev
Log:
update javadocs to match Lucene's def of primitive Query types
Modified:
lucene/java/trunk/src/test/org/apache/lucene/search/TestQueryWrapperFilter.java
Modified: lucene/java/trunk/src/test/org/apache/lucene/search/TestQueryWrapperFilter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/search/TestQueryWrapperFilter.java?rev=805268&r1=805267&r2=805268&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/TestQueryWrapperFilter.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/TestQueryWrapperFilter.java Tue Aug 18 03:48:44 2009
@@ -32,7 +32,7 @@
TopDocs hits = searcher.search(new MatchAllDocsQuery(), qwf, 10);
assertEquals(1, hits.totalHits);
- // should not throw exception with non primitive query
+ // should not throw exception with complex primitive query
BooleanQuery booleanQuery = new BooleanQuery();
booleanQuery.add(termQuery, Occur.MUST);
booleanQuery.add(new TermQuery(new Term("field", "missing")),
@@ -42,8 +42,8 @@
hits = searcher.search(new MatchAllDocsQuery(), qwf, 10);
assertEquals(1, hits.totalHits);
- // should not throw exception with Query that doesn't implement
- // Query#createWeight
+ // should not throw exception with non primitive Query (doesn't implement
+ // Query#createWeight)
qwf = new QueryWrapperFilter(new FuzzyQuery(new Term("field", "valu")));
hits = searcher.search(new MatchAllDocsQuery(), qwf, 10);