lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kelvin Tan <>
Subject Re: CachedSearcher
Date Tue, 16 Jul 2002 02:19:31 GMT
>FSDirectory closes files as they're GC'd, so you
>don't have to explicitly close the IndexReaders or Searchers.
> this documented somewhere? I go through quite abit of trouble 
just to close Searchers (because Hits become invalid when the Searcher is 

If the object has a close() method with public modifier, isn't it a common 
idiom that client code needs to invoke close() explicitly? If there's no 
real need to call close, maybe it can be changed to protected?


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message