diff --git a/lucene/src/java/org/apache/lucene/search/CachingSpanFilter.java b/lucene/src/java/org/apache/lucene/search/CachingSpanFilter.java index eaf2b9286c7..1d65c4624a1 100644 --- a/lucene/src/java/org/apache/lucene/search/CachingSpanFilter.java +++ b/lucene/src/java/org/apache/lucene/search/CachingSpanFilter.java @@ -37,9 +37,7 @@ public class CachingSpanFilter extends SpanFilter { */ private final CachingWrapperFilter.FilterCache cache; - /** - * New deletions always result in a cache miss, by default - * ({@link CachingWrapperFilter.DeletesMode#RECACHE}. + /** Wraps another SpanFilter's result and caches it. * @param filter Filter to cache results of */ public CachingSpanFilter(SpanFilter filter) { diff --git a/lucene/src/java/org/apache/lucene/search/CachingWrapperFilter.java b/lucene/src/java/org/apache/lucene/search/CachingWrapperFilter.java index 42a6ef38782..4de6e2691da 100644 --- a/lucene/src/java/org/apache/lucene/search/CachingWrapperFilter.java +++ b/lucene/src/java/org/apache/lucene/search/CachingWrapperFilter.java @@ -63,9 +63,7 @@ public class CachingWrapperFilter extends Filter { } } - /** - * New deletes are ignored by default, which gives higher - * cache hit rate on reopened readers. + /** Wraps another filter's result and caches it. * @param filter Filter to cache results of */ public CachingWrapperFilter(Filter filter) {