From 43af17b7b46f2a4a79ffc916acc6558431ccc81a Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Fri, 23 Aug 2013 09:21:21 +0000 Subject: [PATCH] LUCENE-5186: Added CachingWrapperFilter.getFilter. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1516773 13f79535-47bb-0310-9956-ffa450edef68 --- lucene/CHANGES.txt | 3 +++ .../org/apache/lucene/search/CachingWrapperFilter.java | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt index 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 implementation based 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 all diff --git a/lucene/core/src/java/org/apache/lucene/search/CachingWrapperFilter.java b/lucene/core/src/java/org/apache/lucene/search/CachingWrapperFilter.java index 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.

This implementation returns the given {@link DocIdSet},