I'm not sure, but I think something in Solr's replication needed this
information?  And maybe that's why it uses timestamps today
instead...?

Mike McCandless

http://blog.mikemccandless.com


On Tue, Nov 6, 2012 at 3:09 AM, Shai Erera <[email protected]> wrote:
> Hi guys,
>
> Lucene today tracks the index generation, which is incremented whenever
> changes are committed to the index. In LUCENE-4532 I needed to add epoch
> tracking, which is incremented whenever the index is being re-created. An
> index is considered to be re-created (for the use case in LUCENE-4532)
> either when you open IndexWriter with OpenMode.CREATE or when you call
> IndexWriter.deleteAll().
>
> In LUCENE-4532 I did that through index commit data. I was wondering if
> others find this information useful, and whether we should add it to Lucene
> alongside the generation and version tracking. It's just another int/long,
> and is not supposed to complicate the code or add any runtime complexity.
>
> Thoughts?
>
> Shai

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to