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 20:41:50 GMT
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: uwe@thetaphi.de


> -----Original Message-----
> From: Ryan McKinley [mailto:ryantxu@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-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