lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Kim" <p...@cymfony.com>
Subject RE: Lucene Index Changed event
Date Mon, 21 Nov 2005 21:32:17 GMT
You can check IndexReader.getCurrentVersion() to see if the index
changed from the last time you checked. The index's version number
changes whenever the index is updated.

Peter

> -----Original Message-----
> From: Aigner, Thomas [mailto:TAigner@WescoDist.com] 
> Sent: Monday, November 21, 2005 3:48 PM
> To: java-user@lucene.apache.org
> Subject: Lucene Index Changed event
> 
> 
> Hi all,
> 	Is there an index changed event that I can jump on that 
> will tell me when my index has been updated so I can close 
> and reopen my searcher to get the new changes?
> 	I can't seem to find the event, but see some tools that 
> might accomplish this (DLESE DPC software components?).  Is 
> there something built in to lucene that I can tap into that 
> will give me this information?
> 
> 	My current ugly work around is a file check when I 
> rebuild the index.
> 
> Thanks all and sorry I'm still a newbie here..
> Tom
> 
> 
> ---------------------------------------------------------------------
> 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