lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Ritchie <>
Subject Re: Caching filter wrapper
Date Tue, 16 Sep 2003 19:28:48 GMT
Erik Hatcher wrote:
> Cool.... I'll work on adding an implementation then.  But what would be 
> the key to the map if not the IndexReader instance?  It ought to be 
> something related to that at least for the scenario's where a single 
> filter instance is being used over multiple indices.  Or would simply 
> two different constructors be enough (one taking a Filter and defaulting 
> to a WeakHashMap, and the other taking a Filter and a Map to use), and 
> still use IndexReader as the key?

Well, seeing as how things are resolving on the other half of this thread, I'll take back
my concern 
about tying the caching to a reader instance (since I've come up with a decent solution which
allow me to use a single reader).


Bruce Ritchie

View raw message