Apache Lucene.Net 2.1 Class Library API

IndexReader.GetCurrentVersion Method

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.

Overload List

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(Directory);

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);

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);

See Also

IndexReader Class | Lucene.Net.Index Namespace