Uses of Class
org.apache.lucene.index.MergePolicy
Packages that use MergePolicy
-
Uses of MergePolicy in org.apache.lucene.index
Subclasses of MergePolicy in org.apache.lucene.indexModifier and TypeClassDescriptionclass
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 (hence it's name).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)
.Fields in org.apache.lucene.index declared as MergePolicyModifier and TypeFieldDescriptionprotected final MergePolicy
UpgradeIndexMergePolicy.base
WrappedMergePolicy
.static final MergePolicy
NoMergePolicy.COMPOUND_FILES
A singletonNoMergePolicy
which indicates the index uses compound files.protected MergePolicy
LiveIndexWriterConfig.mergePolicy
MergePolicy
for selecting merges.static final MergePolicy
NoMergePolicy.NO_COMPOUND_FILES
A singletonNoMergePolicy
which indicates the index does not use compound files.Methods in org.apache.lucene.index that return MergePolicyModifier and TypeMethodDescriptionMergePolicy.clone()
IndexWriterConfig.getMergePolicy()
LiveIndexWriterConfig.getMergePolicy()
Returns the current MergePolicy in use by this writer.Methods in org.apache.lucene.index with parameters of type MergePolicyModifier and TypeMethodDescriptionIndexWriterConfig.setMergePolicy
(MergePolicy mergePolicy) Expert:MergePolicy
is invoked whenever there are changes to the segments in the index.Constructors in org.apache.lucene.index with parameters of type MergePolicyModifierConstructorDescriptionWrap the givenMergePolicy
and intercept forceMerge requests to only upgrade segments written with previous Lucene versions.