lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Time of last insert
Date Tue, 27 Jul 2004 12:15:50 GMT
There is no API for that.  You could look at the modification time of
index files, but this is a hack-ish approach, and is not always correct
(index files get modified for other reasons, too, such as deletion).  I
think that the index version (IndexReader class) is actually a time
stamp of last modification, but again this is not for document addition
only.

This is so easy to add to an application that uses Lucene.  Why not
just keep track of last add date in your app?

Otis

--- lingaraju <lingaraju.shambulingaiah@infactindia.com> wrote:

> 
> Dear  All
> 
> How to know that, when(lastmodified time) last document is added to
> in index
> 
> Thanks and regards
> Raju
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message