Class that will force an index writer to open an index based on the generation in the segments.gen file as opposed to the highest generation found in a directory listing. A use case for using this IndexCommit when opening an IndexWriter would be if index snapshots (source) are being copied over an existing index (target) and the source now has a lower generation than the target due to initiating a rebuild of the index.

Namespace: Lucene.Net.Index
Assembly: Lucene.Net.Contrib.Core (in Lucene.Net.Contrib.Core.dll) Version: 2.9.2.0 (2.9.2)

Syntax

C#
public class SegmentsGenCommit : IndexCommit
Visual Basic
Public Class SegmentsGenCommit _
	Inherits IndexCommit
Visual C++
public ref class SegmentsGenCommit : public IndexCommit

Inheritance Hierarchy

System..::..Object
  Lucene.Net.Index..::..IndexCommit
    Lucene.Net.Index..::..SegmentsGenCommit

See Also