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:[EMAIL PROTECTED] 
> 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: [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