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: u...@thetaphi.de > -----Original Message----- > From: Ryan McKinley [mailto:ryan...@gmail.com] > Sent: Tuesday, February 07, 2012 9:30 PM > To: dev@lucene.apache.org > 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: 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