Re: Closing Index Reader

2008-10-15 Thread Michael McCandless
h wrote: incRef/decRef methods are protected. Is there any other way to use these methods without extending it? Regards Ganesh - Original Message - From: "Michael McCandless" < [EMAIL PROTECTED]> To: Sent: Wednesday, October 15, 2008 2:31 PM Subject: Re: Closing Index Rea

Re: Closing Index Reader

2008-10-15 Thread Khawaja Shams
essage - From: "Michael McCandless" < >> [EMAIL PROTECTED]> >> To: >> Sent: Wednesday, October 15, 2008 2:31 PM >> Subject: Re: Closing Index Reader >> >> >> >>> Ganesh wrote: >>> >>> Yes. Once the Indexreader is clos

Re: Closing Index Reader

2008-10-15 Thread Michael McCandless
tober 15, 2008 2:31 PM Subject: Re: Closing Index Reader 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

Re: Closing Index Reader

2008-10-15 Thread Ganesh
incRef/decRef methods are protected. Is there any other way to use these methods without extending it? Regards Ganesh - Original Message - From: "Michael McCandless" <[EMAIL PROTECTED]> To: Sent: Wednesday, October 15, 2008 2:31 PM Subject: Re: Closing Index Reader

Re: Closing Index Reader

2008-10-15 Thread Michael McCandless
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 i

Re: Closing Index Reader

2008-10-15 Thread Ganesh
]> To: Sent: Wednesday, October 15, 2008 8:05 AM Subject: Closing Index Reader Hello, I am using the reopen method in the IndexReader class. In the case of the IndexReader being updated, I would like to create a new IndexSearcher and close the old IndexReader. When closing an instance of IndexRe

Closing Index Reader

2008-10-14 Thread Khawaja Shams
Hello, I am using the reopen method in the IndexReader class. In the case of the IndexReader being updated, I would like to create a new IndexSearcher and close the old IndexReader. When closing an instance of IndexReader, do I have to wait for currently executing searches (through an IndexSearche