lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: RE : DateFilter.Before/After
Date Mon, 15 Sep 2003 14:39:52 GMT
On Monday, September 15, 2003, at 10:27  AM, Erik Hatcher wrote:
> On Monday, September 15, 2003, at 09:45  AM, Bruce Ritchie wrote:
>> I would suggest *not* using caching inside of filters provided by 
>> lucene but rather provide a wrapper to do the caching. The reason is 
>> that some applications really don't want the libraries they use to be 
>> a source of concern for memory usage. i.e. if I search for a string 
>> using 10,000 different date filters (an extreme example, but 
>> possible) I want the ability to control how those bitsets are going 
>> to be > cached.
> In the case of QueryFilter, simply construct a new one to avoid 
> caching rather than reuse the same instance.  So you have control 
> there as well.  The only thing that is cached is a BitSet, so it 
> should be much of a memory usage concern.

oops... typo... should NOT

View raw message