Returns the merges necessary to optimize the index. This merge policy defines "optimized" to mean only one segment in the index, where that segment has no deletions pending nor separate norms, and it is in compound file format if the current useCompoundFile setting is true. This method returns multiple merges (mergeFactor at a time) so the {@link MergeScheduler} in use may make use of concurrency.

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

Syntax

C#
public override MergePolicy..::..MergeSpecification FindMergesForOptimize(
	SegmentInfos infos,
	int maxNumSegments,
	Hashtable segmentsToOptimize
)
Visual Basic
Public Overrides Function FindMergesForOptimize ( _
	infos As SegmentInfos, _
	maxNumSegments As Integer, _
	segmentsToOptimize As Hashtable _
) As MergePolicy..::..MergeSpecification
Visual C++
public:
virtual MergePolicy..::..MergeSpecification^ FindMergesForOptimize(
	SegmentInfos^ infos, 
	int maxNumSegments, 
	Hashtable^ segmentsToOptimize
) override

Parameters

infos
Type: Lucene.Net.Index..::..SegmentInfos

[Missing <param name="infos"/> documentation for "M:Lucene.Net.Index.LogMergePolicy.FindMergesForOptimize(Lucene.Net.Index.SegmentInfos,System.Int32,System.Collections.Hashtable)"]

maxNumSegments
Type: System..::..Int32

[Missing <param name="maxNumSegments"/> documentation for "M:Lucene.Net.Index.LogMergePolicy.FindMergesForOptimize(Lucene.Net.Index.SegmentInfos,System.Int32,System.Collections.Hashtable)"]

segmentsToOptimize
Type: System.Collections..::..Hashtable

[Missing <param name="segmentsToOptimize"/> documentation for "M:Lucene.Net.Index.LogMergePolicy.FindMergesForOptimize(Lucene.Net.Index.SegmentInfos,System.Int32,System.Collections.Hashtable)"]

Return Value

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

See Also