lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cool The Breezer <>
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 = 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 

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

View raw message