Apache Lucene.Net 2.4.0 Class Library API

SegmentInfos.SetDefaultGenFileRetryCount Method 

Advanced: set how many times to try loading the segments.gen file contents to determine current segment generation. This file is only referenced when the primary method (listing the directory) fails.

public static void SetDefaultGenFileRetryCount(
   int count
);

See Also

SegmentInfos Class | Lucene.Net.Index Namespace