lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Halácsy Péter <halacsy.pe...@axelero.com>
Subject RE: CachedSearcher
Date Tue, 16 Jul 2002 05:42:54 GMT


> -----Original Message-----
> From: Doug Cutting [mailto:cutting@lucene.com]
> 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:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message