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 TypeClassDescriptionclassA wrapper forMergePolicyinstances.classThis is aLogMergePolicythat measures size of a segment as the total byte size of the segment's files.classThis is aLogMergePolicythat measures size of a segment as the number of documents (not taking deletions into account).classThis class implements aMergePolicythat tries to merge segments into levels of exponentially increasing size, where each level has fewer segments than the value of the merge factor.final classAMergePolicywhich never returns merges to execute.classA wrapping merge policy that wraps theMergePolicy.OneMergeobjects returned by the wrapped merge policy.final classThisMergePolicyallows to carry over soft deleted documents across merges.classMerges segments of approximately equal size, subject to an allowed number of segments per tier.classThisMergePolicyis 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 MergePolicyFilterMergePolicy.inThe wrappedMergePolicy.static final MergePolicyNoMergePolicy.INSTANCESingleton instance.protected MergePolicyLiveIndexWriterConfig.mergePolicyMergePolicyfor selecting merges.Methods in org.apache.lucene.index that return MergePolicyModifier and TypeMethodDescriptionIndexWriterConfig.getMergePolicy()LiveIndexWriterConfig.getMergePolicy()Returns the current MergePolicy in use by this writer.FilterMergePolicy.unwrap()Methods in org.apache.lucene.index with parameters of type MergePolicyModifier and TypeMethodDescriptionIndexWriterConfig.setMergePolicy(MergePolicy mergePolicy) LiveIndexWriterConfig.setMergePolicy(MergePolicy mergePolicy) Expert:MergePolicyis invoked whenever there are changes to the segments in the index.Constructors in org.apache.lucene.index with parameters of type MergePolicyModifierConstructorDescriptionCreates 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 newSoftDeletesRetentionMergePolicyWrap the givenMergePolicyand intercept forceMerge requests to only upgrade segments written with previous Lucene versions.