Class ForceMergePolicy

All Implemented Interfaces:
Unwrappable<MergePolicy>

public final class ForceMergePolicy extends FilterMergePolicy
A MergePolicy that only returns forced merges.

NOTE: Use this policy if you wish to disallow background merges but wish to run optimize/forceMerge segment merges.

WARNING: This API is experimental and might change in incompatible ways in the next release.