Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Threaded View
Lucene, mail # dev - IndexReader.lastModified(reader.directory()) replacement?


Copy link to this message
-
Re: IndexReader.lastModified(reader.directory()) replacement?
Ryan McKinley 2012-02-07, 20:57
On Tue, Feb 7, 2012 at 12:38 PM, Michael McCandless
<[EMAIL PROTECTED]> wrote:
> You need to store this in the IndexCommit.
>
> Ie, when you commit, pass the Map<String,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 IR.lastModified...?
>

DR.getVersion() should work -- I just need a way to know if anythign
has changed.

thanks
ryan

---------------------------------------------------------------------