Method FindForcedMerges
FindForcedMerges(SegmentInfos, Int32, IDictionary<SegmentCommitInfo, Nullable<Boolean>>)
Returns the merges necessary to merge the index down
to a specified number of segments.
this respects the m_maxMergeSizeForForcedMerge setting.
By default, and assuming maxNumSegments=1
, only
one segment will be left 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 MergeScheduler
in use may make use of concurrency.
Declaration
public override MergePolicy.MergeSpecification FindForcedMerges(SegmentInfos infos, int maxNumSegments, IDictionary<SegmentCommitInfo, bool?> segmentsToMerge)
Parameters
Type |
Name |
Description |
SegmentInfos |
infos |
|
System.Int32 |
maxNumSegments |
|
IDictionary<SegmentCommitInfo, System.Nullable<System.Boolean>> |
segmentsToMerge |
|
Returns
Overrides