Lucene.Net 1.9.1 Class Library

IndexReader.GetCurrentVersion Method (String)

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(
   string directory
);

Parameters

directory
where the index resides.

Return Value

version number.

See Also

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