Determine what set of merge operations is necessary in order to optimize the index. {@link IndexWriter} calls this when its {@link IndexWriter#Optimize()} method is called. This call is always synchronized on the {@link IndexWriter} instance so only one thread at a time will call this method.

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

Syntax

C#
public abstract MergePolicy..::..MergeSpecification FindMergesForOptimize(
	SegmentInfos segmentInfos,
	int maxSegmentCount,
	Hashtable segmentsToOptimize
)
Visual Basic
Public MustOverride Function FindMergesForOptimize ( _
	segmentInfos As SegmentInfos, _
	maxSegmentCount As Integer, _
	segmentsToOptimize As Hashtable _
) As MergePolicy..::..MergeSpecification
Visual C++
public:
virtual MergePolicy..::..MergeSpecification^ FindMergesForOptimize(
	SegmentInfos^ segmentInfos, 
	int maxSegmentCount, 
	Hashtable^ segmentsToOptimize
) abstract

Parameters

segmentInfos
Type: Lucene.Net.Index..::..SegmentInfos
the total set of segments in the index
maxSegmentCount
Type: System..::..Int32
requested maximum number of segments in the index (currently this is always 1)
segmentsToOptimize
Type: System.Collections..::..Hashtable
contains the specific SegmentInfo instances that must be merged away. This may be a subset of all SegmentInfos.

Return Value

[Missing <returns> documentation for "M:Lucene.Net.Index.MergePolicy.FindMergesForOptimize(Lucene.Net.Index.SegmentInfos,System.Int32,System.Collections.Hashtable)"]

See Also