Is it possible you are closing it somewhere else?

This code fragment looks correct to me.

Mike

Cool The Breezer wrote:

You need to close the old read, only if the newReader is
different
(ie, it was in fact reopened because there were changes in
the index).

I tried closing but getting "index already closed" error.

IndexReader newReader =  reader.reopen();
                        if (newReader != reader) {
//                          reader was reopened
                           reader.close();
                         }
                        
                        reader = newReader;

I think when old reader is assigned with new reader, somehow it is not successful. can you think, these could be any problem?

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

---------------------------------------------------------------------
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