Uses of Class
org.apache.lucene.index.MergePolicy
-
Uses of MergePolicy in org.apache.lucene.index
Modifier and TypeClassDescriptionclass
A wrapper forMergePolicy
instances.class
This is aLogMergePolicy
that measures size of a segment as the total byte size of the segment's files.class
This is aLogMergePolicy
that measures size of a segment as the number of documents (not taking deletions into account).class
This class implements aMergePolicy
that tries to merge segments into levels of exponentially increasing size, where each level has fewer segments than the value of the merge factor.final class
AMergePolicy
which never returns merges to execute.class
A wrapping merge policy that wraps theMergePolicy.OneMerge
objects returned by the wrapped merge policy.final class
ThisMergePolicy
allows to carry over soft deleted documents across merges.class
Merges segments of approximately equal size, subject to an allowed number of segments per tier.class
ThisMergePolicy
is used for upgrading all existing segments of an index when callingIndexWriter.forceMerge(int)
.Modifier and TypeFieldDescriptionprotected final MergePolicy
FilterMergePolicy.in
The wrappedMergePolicy
.static final MergePolicy
NoMergePolicy.INSTANCE
Singleton instance.protected MergePolicy
LiveIndexWriterConfig.mergePolicy
MergePolicy
for selecting merges.Modifier and TypeMethodDescriptionIndexWriterConfig.getMergePolicy()
LiveIndexWriterConfig.getMergePolicy()
Returns the current MergePolicy in use by this writer.FilterMergePolicy.unwrap()
Modifier and TypeMethodDescriptionIndexWriterConfig.setMergePolicy
(MergePolicy mergePolicy) LiveIndexWriterConfig.setMergePolicy
(MergePolicy mergePolicy) Expert:MergePolicy
is invoked whenever there are changes to the segments in the index.ModifierConstructorDescriptionCreates a new filter merge policy instance wrapping another.OneMergeWrappingMergePolicy
(MergePolicy in, UnaryOperator<MergePolicy.OneMerge> wrapOneMerge) ConstructorSoftDeletesRetentionMergePolicy
(String field, Supplier<Query> retentionQuerySupplier, MergePolicy in) Creates a newSoftDeletesRetentionMergePolicy
Wrap the givenMergePolicy
and intercept forceMerge requests to only upgrade segments written with previous Lucene versions.