Uses of Class
org.apache.lucene.index.MergePolicy
-
Packages that use MergePolicy Package Description org.apache.lucene.index Code to maintain and access indices. -
-
Uses of MergePolicy in org.apache.lucene.index
Subclasses of MergePolicy in org.apache.lucene.index Modifier and Type Class Description classLogByteSizeMergePolicyThis is aLogMergePolicythat measures size of a segment as the total byte size of the segment's files.classLogDocMergePolicyThis is aLogMergePolicythat measures size of a segment as the number of documents (not taking deletions into account).classLogMergePolicyThis 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.classNoMergePolicyAMergePolicywhich never returns merges to execute (hence it's name).classTieredMergePolicyMerges segments of approximately equal size, subject to an allowed number of segments per tier.classUpgradeIndexMergePolicyThisMergePolicyis used for upgrading all existing segments of an index when callingIndexWriter.forceMerge(int).Fields in org.apache.lucene.index declared as MergePolicy Modifier and Type Field Description protected MergePolicyUpgradeIndexMergePolicy. baseWrappedMergePolicy.static MergePolicyNoMergePolicy. COMPOUND_FILESA singletonNoMergePolicywhich indicates the index uses compound files.protected MergePolicyLiveIndexWriterConfig. mergePolicyMergePolicyfor selecting merges.static MergePolicyNoMergePolicy. NO_COMPOUND_FILESA singletonNoMergePolicywhich indicates the index does not use compound files.Methods in org.apache.lucene.index that return MergePolicy Modifier and Type Method Description MergePolicyMergePolicy. clone()MergePolicyIndexWriterConfig. getMergePolicy()MergePolicyLiveIndexWriterConfig. getMergePolicy()Returns the current MergePolicy in use by this writer.Methods in org.apache.lucene.index with parameters of type MergePolicy Modifier and Type Method Description IndexWriterConfigIndexWriterConfig. 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 MergePolicy Constructor Description UpgradeIndexMergePolicy(MergePolicy base)Wrap the givenMergePolicyand intercept forceMerge requests to only upgrade segments written with previous Lucene versions.
-