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

Mike McCandless

http://blog.mikemccandless.com

On Tue, Feb 7, 2012 at 3:29 PM, Ryan McKinley <ryan...@gmail.com> wrote:
> I'm upgrading some stuff to lucene trunk....  is there any way to get
> the last modified date from an AtomicReader?  or an
> AtomicReaderContext?
>
> thanks
> ryan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
> For additional commands, e-mail: dev-h...@lucene.apache.org
>

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

Reply via email to