The LogMergePolicy type exposes the following members.
Methods
Name | Description | |
---|---|---|
Close | (Overrides MergePolicy..::..Close()()()().) | |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
FindMerges | Checks if any merges are now necessary and returns a
{@link MergePolicy.MergeSpecification} if so. A merge
is necessary when there are more than {@link
#setMergeFactor} segments at a given level. When
multiple levels have too many segments, this method
will return multiple merges, allowing the {@link
MergeScheduler} to use concurrency.
(Overrides MergePolicy..::..FindMerges(SegmentInfos).) | |
FindMergesForOptimize | Returns the merges necessary to optimize the index.
This merge policy defines "optimized" to mean only one
segment in the index, where that segment has no
deletions pending nor separate norms, and it is in
compound file format if the current useCompoundFile
setting is true. This method returns multiple merges
(mergeFactor at a time) so the {@link MergeScheduler}
in use may make use of concurrency.
(Overrides MergePolicy..::..FindMergesForOptimize(SegmentInfos, Int32, Hashtable).) | |
FindMergesToExpungeDeletes | Finds merges necessary to expunge all deletes from the
index. We simply merge adjacent segments that have
deletes, up to mergeFactor at a time.
(Overrides MergePolicy..::..FindMergesToExpungeDeletes(SegmentInfos).) | |
GetCalibrateSizeByDeletes | Returns true if the segment size should be calibrated
by the number of deletes when choosing segments for merge.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetMaxMergeDocs | Returns the largest segment (measured by document
count) that may be merged with other segments.
| |
GetMergeFactor | Returns the number of segments that are merged at
once and also controls the total number of segments
allowed to accumulate in the index. | |
GetNoCFSRatio | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUseCompoundDocStore | Returns true if newly flushed and newly merge doc
store segment files (term vectors and stored fields)
| |
GetUseCompoundFile | Returns true if newly flushed and newly merge segments | |
MakeOneMerge | ||
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetCalibrateSizeByDeletes | Sets whether the segment size should be calibrated by
the number of deletes when choosing segments for merge.
| |
SetMaxMergeDocs | Determines the largest segment (measured by
document count) that may be merged with other segments.
Small values (e.g., less than 10,000) are best for
interactive indexing, as this limits the length of
pauses while indexing to a few seconds. Larger values
are best for batched indexing and speedier
searches.The default value is {@link Integer#MAX_VALUE}.The default merge policy ({@link
LogByteSizeMergePolicy}) also allows you to set this
limit by net size (in MB) of the segment, using {@link
LogByteSizeMergePolicy#setMaxMergeMB}. | |
SetMergeFactor | Determines how often segment indices are merged by
addDocument(). With smaller values, less RAM is used
while indexing, and searches on unoptimized indices are
faster, but indexing speed is slower. With larger
values, more RAM is used during indexing, and while
searches on unoptimized indices are slower, indexing is
faster. Thus larger values (> 10) are best for batch
index creation, and smaller values (< 10) for indices
that are interactively maintained.
| |
SetNoCFSRatio | ||
SetUseCompoundDocStore | Sets whether compound file format should be used for
newly flushed and newly merged doc store
segment files (term vectors and stored fields).
| |
SetUseCompoundFile | Sets whether compound file format should be used for
newly flushed and newly merged segments.
| |
Size | ||
SizeBytes | ||
SizeDocs | ||
ToString | (Inherited from Object.) | |
UseCompoundDocStore | (Overrides MergePolicy..::..UseCompoundDocStore(SegmentInfos).) | |
UseCompoundFile | (Overrides MergePolicy..::..UseCompoundFile(SegmentInfos, SegmentInfo).) | |
Verbose |