You need to store this in the IndexCommit.
Ie, when you commit, pass the MapString,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
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
On Tue, Feb 7, 2012 at 12:38 PM, Michael McCandless
luc...@mikemccandless.com wrote:
You need to store this in the IndexCommit.
Ie, when you commit, pass the MapString,String userData that holds
the timestamp (and anything else you want to store...).
Or, use DR.getVersion or
: IndexReader.lastModified(reader.directory()) replacement?
On Tue, Feb 7, 2012 at 12:38 PM, Michael McCandless
luc...@mikemccandless.com wrote:
You need to store this in the IndexCommit.
Ie, when you commit, pass the MapString,String userData that holds
the timestamp (and anything else you want