DotLucene 1.4 API Documentation |

# IndexReader.GetCurrentVersion Method (Directory)

Reads version number from segments files. The version number counts the number of changes of the index.

public static long GetCurrentVersion(
Directory directory
);

#### Parameters

directory
  where the index resides.

#### Return Value

version number.

#### See Also

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