Apache Lucene open-source search software
LUCENE-2468: strengthen javadocs
Michael McCandlessdc26c2695609
diff --git a/lucene/src/java/org/apache/lucene/search/CachingWrapperFilter.java b/lucene/src/java/org/apache/lucene/search/CachingWrapperFilter.javaindex 3627b66651f..4c8162421f4 100644--- a/lucene/src/java/org/apache/lucene/search/CachingWrapperFilter.java+++ b/lucene/src/java/org/apache/lucene/search/CachingWrapperFilter.java@@ -29,7 +29,13 @@ import org.apache.lucene.util.Bits;/*** Wraps another filter's result and caches it. The purpose is to allow- * filters to simply filter, and then wrap with this class to add caching.+ * filters to simply filter, and then wrap with this class+ * to add caching.+ *+ * <p><b>NOTE</b>: if you wrap this filter as a query (eg,+ * using ConstantScoreQuery), you'll likely want to enforce+ * deletions (using either {@link DeletesMode#RECACHE} or+ * {@link DeletesMode#DYNAMIC}).*/public class CachingWrapperFilter extends Filter {Filter filter;diff --git a/lucene/src/java/org/apache/lucene/search/ConstantScoreQuery.java b/lucene/src/java/org/apache/lucene/search/ConstantScoreQuery.javaindex 3e8a6e16319..af0b400ed0e 100644--- a/lucene/src/java/org/apache/lucene/search/ConstantScoreQuery.java+++ b/lucene/src/java/org/apache/lucene/search/ConstantScoreQuery.java@@ -26,6 +26,12 @@ import java.util.Set;/*** A query that wraps a filter and simply returns a constant score equal to the* query boost for every document in the filter.+ *+ * <p><b>NOTE</b>: if the wrapped filter is an instance of+ * {@link CachingWrapperFilter}, you'll likely want to+ * enforce deletions in the filter (using either {@link+ * CachingWrapperFilter.DeletesMode#RECACHE} or {@link+ * CachingWrapperFilter.DeletesMode#DYNAMIC}).*/public class ConstantScoreQuery extends Query {protected final Filter filter;