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.
Namespace: Lucene.Net.IndexAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public static long GetCurrentVersion( Directory directory ) |
Visual Basic |
---|
Public Shared Function GetCurrentVersion ( _ directory As Directory _ ) As Long |
Visual C++ |
---|
public: static long long GetCurrentVersion( Directory^ directory ) |
Parameters
- directory
- Type: Lucene.Net.Store..::..Directory
where the index resides.