> -----Original Message-----
> From: Doug Cutting [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 1:00 AM
> To: Lucene Users List
> Subject: Re: CachedSearcher
> 
> 
> Why is this more complicated than the code in demo/Search.jhtml 
> (included below)?  FSDirectory closes files as they're GC'd, so you 
> don't have to explicitly close the IndexReaders or Searchers.

I'll check this code, but I think it could hang up with a lot of opened IndexReader.
http://developer.java.sun.com/developer/TechTips/2000/tt0124.html

(If a lot of searcher is requested ant a writer is always modificating the index). 

peter

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to