Get the generation (N) of the current segments_N file in the directory.

Namespace: Lucene.Net.Index
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public static long GetCurrentSegmentGeneration(
	Directory directory
)
Visual Basic
Public Shared Function GetCurrentSegmentGeneration ( _
	directory As Directory _
) As Long
Visual C++
public:
static long long GetCurrentSegmentGeneration(
	Directory^ directory
)

Parameters

directory
Type: Lucene.Net.Store..::..Directory
-- directory to search for the latest segments_N file

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Index.SegmentInfos.GetCurrentSegmentGeneration(Lucene.Net.Store.Directory)"]

See Also