Apache Lucene.Net 2.4.0 Class Library API

SegmentInfos.SetDefaultGenLookaheadCount Method 

Advanced: set how many times to try incrementing the gen when loading the segments file. This only runs if the primary (listing directory) and secondary (opening segments.gen file) methods fail to find the segments file.

public static void SetDefaultGenLookaheadCount(
   int count
);

See Also

SegmentInfos Class | Lucene.Net.Index Namespace