Apache Lucene.Net 2.4.0 Class Library API

SegmentInfos.GetCurrentSegmentGeneration Method (Directory)

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

public static long GetCurrentSegmentGeneration(
   Directory directory
);

Parameters

directory
-- directory to search for the latest segments_N file

See Also

SegmentInfos Class | Lucene.Net.Index Namespace | SegmentInfos.GetCurrentSegmentGeneration Overload List