lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: IndexReader.lastModified(reader.directory()) replacement?
Date Tue, 07 Feb 2012 21:05:05 GMT
Then thats what you need!

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de


> -----Original Message-----
> From: Ryan McKinley [mailto:ryantxu@gmail.com]
> Sent: Tuesday, February 07, 2012 9:57 PM
> To: dev@lucene.apache.org
> Subject: Re: IndexReader.lastModified(reader.directory()) replacement?
> 
> On Tue, Feb 7, 2012 at 12:38 PM, Michael McCandless
> <lucene@mikemccandless.com> wrote:
> > You need to store this in the IndexCommit.
> >
> > Ie, when you commit, pass the Map<String,String> userData that holds
> > the timestamp (and anything else you want to store...).
> >
> > Or, use DR.getVersion or DR.getIndexCommit().getGeneration() as
> > similar replacements.
> >
> > Can you describe how you were using IR.lastModified...?
> >
> 
> DR.getVersion() should work -- I just need a way to know if anythign has
> changed.
> 
> thanks
> ryan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional
> commands, e-mail: dev-help@lucene.apache.org


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


Mime
View raw message