java.lang.Object | |||
↳ | org.apache.lucene.index.MergePolicy | ||
↳ | org.apache.lucene.index.LogMergePolicy | ||
↳ | org.apache.lucene.index.LogDocMergePolicy |
This is a LogMergePolicy
that measures size of a
segment as the number of documents (not taking deletions
into account).
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DEFAULT_MIN_MERGE_DOCS | Default minimum segment size. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.index.LogMergePolicy
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.index.LogMergePolicy
| |||||||||||
From class
org.apache.lucene.index.MergePolicy
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the minimum size for a segment to remain
un-merged.
| |||||||||||
Sets the minimum size for the lowest level segments.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.index.LogMergePolicy
| |||||||||||
From class
org.apache.lucene.index.MergePolicy
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.io.Closeable
|
Default minimum segment size. @see setMinMergeDocs
Get the minimum size for a segment to remain un-merged.
Sets the minimum size for the lowest level segments. Any segments below this size are considered to be on the same level (even if they vary drastically in size) and will be merged whenever there are mergeFactor of them. This effectively truncates the "long tail" of small segments that would otherwise be created into a single level. If you set this too large, it could greatly increase the merging cost during indexing (if you flush many small segments).