lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Search Performance
Date Fri, 18 Feb 2005 22:29:49 GMT
Yes, until it's cleaned up, and as soon as the last client is done with
Hits, the originating IndexSearcher is ready for cleanup if nobody else
is holding references to it.  You can close it explicityly, as you are
doing, too, no harm.

Otis

--- Chris Lamprecht <clamprecht@gmail.com> wrote:

> Wouldn't this leave open file handles?   I had a problem where there
> were lots of open file handles for deleted index files, because the
> old searchers were not being closed.
> 
> On Fri, 18 Feb 2005 13:41:37 -0800 (PST), Otis Gospodnetic
> <otis_gospodnetic@yahoo.com> wrote:
> > Or you could just open a new IndexSearcher, forget the old one, and
> > have GC collect it when everyone is done with it.
> > 
> > Otis
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message