Apache Lucene.Net 2.4.0 Class Library API

IndexReader.GetCurrentVersion Method (FileInfo)

Reads version number from segments files. The version number is initialized with a timestamp and then increased by one for each change of the index.

public static long GetCurrentVersion(
   FileInfo directory
);

Parameters

directory
where the index resides.

Return Value

version number.

See Also

IndexReader Class | Lucene.Net.Index Namespace | IndexReader.GetCurrentVersion Overload List