Hi,

An index directory is always a CompositeReader, so single segment never
knows a modification date, so it's not part of AtomicReader. The only part
that might know anything about index commits, directories,... is
DirectoryReader (see my blog post).

But all that's not the cause for your problem it has nothing to do with my
refactoring, lastModified is broken and was removed by Mike McCandless:
https://issues.apache.org/jira/browse/LUCENE-3672

Uwe

-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: [email protected]


> -----Original Message-----
> From: Ryan McKinley [mailto:[email protected]]
> Sent: Tuesday, February 07, 2012 9:30 PM
> To: [email protected]
> Subject: IndexReader.lastModified(reader.directory()) replacement?
> 
> 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: [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