Class SoftDeletesRetentionMergePolicy

All Implemented Interfaces:
Unwrappable<MergePolicy>

public final class SoftDeletesRetentionMergePolicy extends OneMergeWrappingMergePolicy
This MergePolicy allows to carry over soft deleted documents across merges. The policy wraps the merge reader and marks documents as "live" that have a value in the soft delete field and match the provided query. This allows for instance to keep documents alive based on time or any other constraint in the index. The main purpose for this merge policy is to implement retention policies for document modification to vanish in the index. Using this merge policy allows to control when soft deletes are claimed by merges.
WARNING: This API is experimental and might change in incompatible ways in the next release.