Re: IndexReader.lastModified(reader.directory()) replacement?

2012-02-07 Thread Michael McCandless
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

RE: IndexReader.lastModified(reader.directory()) replacement?

2012-02-07 Thread Uwe Schindler
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

Re: IndexReader.lastModified(reader.directory()) replacement?

2012-02-07 Thread Ryan McKinley
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

RE: IndexReader.lastModified(reader.directory()) replacement?

2012-02-07 Thread Uwe Schindler
: 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