Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
Modifier and Type | Class and Description |
---|---|
class |
LogByteSizeMergePolicy
This is a
LogMergePolicy that measures size of a
segment as the total byte size of the segment's files. |
class |
LogDocMergePolicy
This is a
LogMergePolicy that measures size of a
segment as the number of documents (not taking deletions
into account). |
class |
LogMergePolicy
This class implements a
MergePolicy that tries
to merge segments into levels of exponentially
increasing size, where each level has fewer segments than
the value of the merge factor. |
class |
MergePolicyWrapper
A wrapper for
MergePolicy instances. |
class |
NoMergePolicy
A
MergePolicy which never returns merges to execute. |
class |
OneMergeWrappingMergePolicy
A wrapping merge policy that wraps the
MergePolicy.OneMerge
objects returned by the wrapped merge policy. |
class |
TieredMergePolicy
Merges segments of approximately equal size, subject to
an allowed number of segments per tier.
|
class |
UpgradeIndexMergePolicy
This
MergePolicy is used for upgrading all existing segments of
an index when calling IndexWriter.forceMerge(int) . |
Modifier and Type | Field and Description |
---|---|
protected MergePolicy |
MergePolicyWrapper.in
The wrapped
MergePolicy . |
static MergePolicy |
NoMergePolicy.INSTANCE
Singleton instance.
|
protected MergePolicy |
LiveIndexWriterConfig.mergePolicy
MergePolicy for selecting merges. |
Modifier and Type | Method and Description |
---|---|
MergePolicy |
LiveIndexWriterConfig.getMergePolicy()
Returns the current MergePolicy in use by this writer.
|
MergePolicy |
IndexWriterConfig.getMergePolicy() |
Modifier and Type | Method and Description |
---|---|
LiveIndexWriterConfig |
LiveIndexWriterConfig.setMergePolicy(MergePolicy mergePolicy)
Expert:
MergePolicy is invoked whenever there are changes to the
segments in the index. |
IndexWriterConfig |
IndexWriterConfig.setMergePolicy(MergePolicy mergePolicy) |
Constructor and Description |
---|
MergePolicyWrapper(MergePolicy in)
Creates a new merge policy instance.
|
OneMergeWrappingMergePolicy(MergePolicy in,
UnaryOperator<MergePolicy.OneMerge> wrapOneMerge)
Constructor
|
UpgradeIndexMergePolicy(MergePolicy in)
Wrap the given
MergePolicy and intercept forceMerge requests to
only upgrade segments written with previous Lucene versions. |
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.