Apache Lucene open-source search software
LUCENE-5186: Added CachingWrapperFilter.getFilter.
Adrien Grand43af17b7b46f
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txtindex a4df19cded5..1f4935575d8 100644--- a/lucene/CHANGES.txt+++ b/lucene/CHANGES.txt@@ -104,6 +104,9 @@ New features* LUCENE-2750: Added PForDeltaDocIdSet, an in-memory doc id set implementationbased on the PFOR encoding. (Adrien Grand)+* LUCENE-5186: Added CachingWrapperFilter.getFilter in order to be able to get+ the wrapped filter. (Trejkaz via Adrien Grand)+Bug Fixes* LUCENE-5116: IndexWriter.addIndexes(IndexReader...) should drop empty (or alldiff --git a/lucene/core/src/java/org/apache/lucene/search/CachingWrapperFilter.java b/lucene/core/src/java/org/apache/lucene/search/CachingWrapperFilter.javaindex 94750c07001..a1382181fc9 100644--- a/lucene/core/src/java/org/apache/lucene/search/CachingWrapperFilter.java+++ b/lucene/core/src/java/org/apache/lucene/search/CachingWrapperFilter.java@@ -49,6 +49,14 @@ public class CachingWrapperFilter extends Filter {this.filter = filter;}+ /**+ * Gets the contained filter.+ * @return the contained filter.+ */+ public Filter getFilter() {+ return filter;+ }+/*** Provide the DocIdSet to be cached, using the DocIdSet provided* by the wrapped Filter. <p>This implementation returns the given {@link DocIdSet},