lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antony Bowesman <>
Subject Re: Filters with 2.9.4
Date Wed, 27 Apr 2011 12:13:05 GMT
Thanks Uwe.  I'll work towards the CachingWrapperFilter.

On 27/04/2011 9:33 PM, Uwe Schindler wrote:
> Hi,
> In Lucene trunk the Filter gets a ReaderContext which contain a doc base if
> available.
> For Lucene 2 and 3 this is not available. The Lucene 2.9 code did not change
> documented behavior. The fact that Filters always got the top level reader
> was never documented (it was just like that in early Lucene versions) and so
> is no break. The same applies not only to filters, it also applies to
> Scorers created by Queries. Those also don't know anything about the
> top-level searcher (and they don't need). For a filter to work this is also
> not an requirement - the IndexReader passed as parameter is self contained
> and provides all information for processing the current segment). You should
> simply fix your caching (which is much more effective after this change, as
> the cache items don't get invalid after a reopen of an index where only few
> segments changed).
> I would suggest to correct your code and use CachingWrapperFilter.
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> eMail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message