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.Index
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
[ObsoleteAttribute("Use GetCurrentVersion(Directory) instead. This method will be removed in the 3.0 release.")]
public static long GetCurrentVersion(
	FileInfo directory
)
Visual Basic
<ObsoleteAttribute("Use GetCurrentVersion(Directory) instead. This method will be removed in the 3.0 release.")> _
Public Shared Function GetCurrentVersion ( _
	directory As FileInfo _
) As Long
Visual C++
[ObsoleteAttribute(L"Use GetCurrentVersion(Directory) instead. This method will be removed in the 3.0 release.")]
public:
static long long GetCurrentVersion(
	FileInfo^ directory
)

Parameters

directory
Type: System.IO..::..FileInfo
where the index resides.

Return Value

version number.

See Also