On Tue, Oct 21, 2014 at 1:18 PM, Thomas Mueller <[email protected]> wrote:
> What we need is a distinction between the old and the new index *data*.

Yes and that can be done by storing the index creation time.

In the approach you suggested where two different nodes are used and
later the nodes are renamed allows the logic to determine that its
reindex. Renaming the node would be fine in this case as actual data
is stored on filesystem but if it contains actual data then such a
move might be costly. For e.g. in copy on read case the index data
would be stored in NodeStore and also on file system. Further this is
something which each such index implementation would need to follow

Instead if we just record the creation time in the index definition
node and then allow index impls to make use of that info to
distinguish between a reindex and incremental index then that would
serve the same purpose


Chetan Mehrotra

Reply via email to