Uses of Class org.apache.lucene.index.MergePolicy (Lucene 3.6.2 API)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
org.apache.lucene.index.MergePolicy

Packages that use MergePolicy
org.apache.lucene.index | Code to maintain and access indices.
org.apache.lucene.util | Some utility classes.

Uses of MergePolicy in org.apache.lucene.index

Subclasses of MergePolicy in org.apache.lucene.index
`class` | `BalancedSegmentMergePolicy` Deprecated. This class is removed in 4.0; use `TieredMergePolicy` instead.
`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` | `MockRandomMergePolicy` MergePolicy that makes random decisions for testing.
`class` | `NoMergePolicy` A `MergePolicy` which never returns merges to execute (hence it's name).
`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)`.

Fields in org.apache.lucene.index declared as MergePolicy
`protected MergePolicy` | `UpgradeIndexMergePolicy.base`
`static MergePolicy` | `NoMergePolicy.COMPOUND_FILES` A singleton `NoMergePolicy` which indicates the index uses compound files.
`static MergePolicy` | `NoMergePolicy.NO_COMPOUND_FILES` A singleton `NoMergePolicy` which indicates the index does not use compound files.

Methods in org.apache.lucene.index that return MergePolicy
`MergePolicy` | `IndexWriterConfig.getMergePolicy()` Returns the current MergePolicy in use by this writer.
`MergePolicy` | `IndexWriter.getMergePolicy()` Deprecated. use `IndexWriterConfig.getMergePolicy()` instead

Methods in org.apache.lucene.index with parameters of type MergePolicy
`IndexWriterConfig` | `IndexWriterConfig.setMergePolicy(MergePolicy mergePolicy)` Expert: `MergePolicy` is invoked whenever there are changes to the segments in the index.
`void` | `IndexWriter.setMergePolicy(MergePolicy mp)` Deprecated. use `IndexWriterConfig.setMergePolicy(MergePolicy)` instead.

Constructors in org.apache.lucene.index with parameters of type MergePolicy
`UpgradeIndexMergePolicy(MergePolicy base)` Wrap the given `MergePolicy` and intercept forceMerge requests to only upgrade segments written with previous Lucene versions.

Uses of MergePolicy in org.apache.lucene.util

Methods in org.apache.lucene.util with parameters of type MergePolicy
`static void` | `LuceneTestCase.setMergeFactor(MergePolicy mp, int mergeFactor)`
`static void` | `LuceneTestCase.setUseCompoundFile(MergePolicy mp, boolean useCompound)`
`static void` | `_TestUtil.setUseCompoundFile(MergePolicy mp, boolean v)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV NEXT | FRAMES NO FRAMES