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 <[EMAIL PROTECTED]> 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
> <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

Reply via email to