Apache Lucene.Net 2.4.0 Class Library API

LogMergePolicy Methods

The methods of the LogMergePolicy class are listed below. For a complete list of LogMergePolicy class members, see the LogMergePolicy Members topic.

Public Instance Methods

Close 
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
FindMergesChecks 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.
FindMergesForOptimize 
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.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetMaxMergeDocsReturns the largest segment (measured by document count) that may be merged with other segments.
GetMergeFactorReturns the number of segments that are merged at once and also controls the total number of segments allowed to accumulate in the index.
GetType (inherited from Object)Gets the Type of the current instance.
GetUseCompoundDocStoreReturns true if newly flushed and newly merge doc store segment files (term vectors and stored fields)
GetUseCompoundFileReturns true if newly flushed and newly merge segments
SetMaxMergeDocsDetermines 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 
SetUseCompoundDocStoreSets whether compound file format should be used for newly flushed and newly merged doc store segment files (term vectors and stored fields).
SetUseCompoundFileSets whether compound file format should be used for newly flushed and newly merged segments.
ToString (inherited from Object)Returns a String that represents the current Object.
UseCompoundDocStore 
UseCompoundFile 

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

Protected Internal Instance Methods

Size 

See Also

LogMergePolicy Class | Lucene.Net.Index Namespace