메소드 |
설명 |
|
FindMerges ( SegmentInfos infos ) : MergeSpecification |
Checks if any merges are now necessary and returns a MergePolicy.MergeSpecification if so. A merge is necessary when there are more than SetMergeFactor segments at a given level. When multiple levels have too many segments, this method will return multiple merges, allowing the MergeScheduler to use concurrency. |
|
FindMergesForOptimize ( SegmentInfos infos, int maxNumSegments, ISet segmentsToOptimize ) : MergeSpecification |
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 MergeScheduler in use may make use of concurrency. |
|
FindMergesToExpungeDeletes ( SegmentInfos segmentInfos ) : MergeSpecification |
Finds merges necessary to expunge all deletes from the index. We simply merge adjacent segments that have deletes, up to mergeFactor at a time. |
|
SetUseCompoundDocStore ( bool useCompoundDocStore ) : void |
Sets whether compound file format should be used for newly flushed and newly merged doc store segment files (term vectors and stored fields). |
|
SetUseCompoundFile ( bool useCompoundFile ) : void |
Gets or sets whether compound file format should be used for newly flushed and newly merged segments. |
|
UseCompoundDocStore ( SegmentInfos infos ) : bool |
|
|
UseCompoundFile ( SegmentInfos infos, SegmentInfo info ) : bool |
|
|