lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Problem with updating Index continuously
Date Mon, 20 Oct 2008 10:07:27 GMT

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: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>


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


Mime
View raw message