lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aigner, Thomas" <TAig...@WescoDist.com>
Subject RE: Lucene Index Changed event
Date Mon, 21 Nov 2005 22:37:31 GMT
Thx Peter.. worked like a charm!

-----Original Message-----
From: Peter Kim [mailto:pkim@cymfony.com] 
Sent: Monday, November 21, 2005 4:32 PM
To: java-user@lucene.apache.org
Subject: RE: Lucene Index Changed event

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


---------------------------------------------------------------------
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