lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r788203 - /lucene/java/trunk/src/java/org/apache/lucene/search/Collector.java
Date Wed, 24 Jun 2009 22:57:47 GMT
Author: uschindler
Date: Wed Jun 24 22:57:46 2009
New Revision: 788203

URL: http://svn.apache.org/viewvc?rev=788203&view=rev
Log:
Javadoc update:
The example impl in Collector missed the new method acceptsDocsOutOfOrder, added and reformatted

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/Collector.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/Collector.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/Collector.java?rev=788203&r1=788202&r2=788203&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/Collector.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/Collector.java Wed Jun 24 22:57:46
2009
@@ -93,9 +93,14 @@
  * searcher.search(query, new Collector() {
  *   private int docBase;
  * 
- *   // ignore scorer
+ *   <em>// ignore scorer</em>
  *   public void setScorer(Scorer scorer) {
  *   }
+ *
+ *   <em>// accept docs out of order (for a BitSet it doesn't matter)</em>
+ *   public boolean acceptsDocsOutOfOrder() {
+ *     return true;
+ *   }
  * 
  *   public void collect(int doc) {
  *     bits.set(doc + docBase);



Mime
View raw message