lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: Closing Index Reader
Date Wed, 15 Oct 2008 09:01:32 GMT

Ganesh wrote:

> Yes. Once the Indexreader is closed, you should not do make any  
> calls with that object.
> Extend the IndexReader to add support for reference count. Close the  
> reader once the count is zero.

Actually you can just use the [expert] incRef/decRef methods on  
IndexReader to track in-flight searches still using it.  You shouldn't  
have to extend it.


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

View raw message