lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cool The Breezer <techcool.ku...@yahoo.com>
Subject Re: Problem with updating Index continuously
Date Mon, 20 Oct 2008 09:40:36 GMT
> 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


Mime
View raw message