Yeap. I strongly support John. I knew when I reopen indexes. Then what is the reason to wait for garbage collector.. And that too, FieldCache uses WeakHashMap and that may lead some memory leaks.
Jelda > -----Original Message----- > From: John Wang [mailto:[EMAIL PROTECTED] > Sent: Friday, March 09, 2007 8:23 AM > To: java-user@lucene.apache.org > Subject: FieldCache: flush cache explicitly > > I think the api should allow for explicitly flush the fieldcache. > > I have a setup where new readers are being loaded very some > period of time. I don't want to rely on Java WeakHashMap to > free the cache, I want to be able to do it in a deterministic way. > > It would be great if this can be added to Lucene, I can > create a bug if the Lucene gods agree to it :) > > Thanks > > -John > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]