lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r899390 - /lucene/java/trunk/src/java/org/apache/lucene/search/Filter.java
Date Thu, 14 Jan 2010 20:16:08 GMT
Author: mikemccand
Date: Thu Jan 14 20:16:04 2010
New Revision: 899390

URL: http://svn.apache.org/viewvc?rev=899390&view=rev
Log:
tweak javadocs

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

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/Filter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/search/Filter.java?rev=899390&r1=899389&r2=899390&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/Filter.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/Filter.java Thu Jan 14 20:16:04 2010
@@ -23,21 +23,20 @@
 import org.apache.lucene.util.DocIdBitSet;
 
 /** 
- *  Abstract base class providing a mechanism to use a subset of an index
- *  for restriction or permission of index search results.
- *  <p>
+ *  Abstract base class for restricting which documents may
+ *  be returned during searching.
  */
 public abstract class Filter implements java.io.Serializable {
   
   /**
-   * Creates a {@link DocIdSet} that provides the documents which should be
-   * permitted or prohibited in search results. <b>NOTE:</b> null can be
-   * returned if no documents will be accepted by this Filter.
+   * Creates a {@link DocIdSet} enumerating the documents that should be
+   * permitted in search results. <b>NOTE:</b> null can be
+   * returned if no documents are accepted by this Filter.
    * <p>
-   * Note: This method might be called more than once during a search if the
-   * index has more than one segment. In such a case the {@link DocIdSet}
-   * must be relative to the document base of the given reader. Yet, the
-   * segment readers are passed in increasing document base order.
+   * Note: This method will be called once per segment in
+   * the index during searching.  The returned {@link DocIdSet}
+   * must refer to document IDs for that segment, not for
+   * the top-level reader.
    * 
    * @param reader a {@link IndexReader} instance opened on the index currently
    *         searched on. Note, it is likely that the provided reader does not



Mime
View raw message