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(
	string directory
)
Visual Basic
<ObsoleteAttribute("Use GetCurrentVersion(Directory) instead. This method will be removed in the 3.0 release.")> _
Public Shared Function GetCurrentVersion ( _
	directory As String _
) 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(
	String^ directory
)

Parameters

directory
Type: System..::..String
where the index resides.

Return Value

version number.

See Also