Apache Lucene.Net 2.4.0 Class Library API

LogByteSizeMergePolicy Members

LogByteSizeMergePolicy overview

Public Static Fields

DEFAULT_MAX_MERGE_MBDefault maximum segment size. A segment of this size
DEFAULT_MIN_MERGE_MB 

Public Instance Constructors

LogByteSizeMergePolicy Constructor Initializes a new instance of the LogByteSizeMergePolicy class.

Public Instance Methods

Close (inherited from LogMergePolicy) 
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
FindMerges (inherited from LogMergePolicy)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.
FindMergesForOptimize (inherited from LogMergePolicy) 
FindMergesToExpungeDeletes (inherited from LogMergePolicy) 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.
GetMaxMergeDocs (inherited from LogMergePolicy)Returns the largest segment (measured by document count) that may be merged with other segments.
GetMaxMergeMBReturns the largest segment (meaured by total byte size of the segment's files, in MB) that may be merged with other segments.
GetMergeFactor (inherited from LogMergePolicy)Returns the number of segments that are merged at once and also controls the total number of segments allowed to accumulate in the index.
GetMinMergeMBGet the minimum size for a segment to remain un-merged.
GetType (inherited from Object)Gets the Type of the current instance.
GetUseCompoundDocStore (inherited from LogMergePolicy)Returns true if newly flushed and newly merge doc store segment files (term vectors and stored fields)
GetUseCompoundFile (inherited from LogMergePolicy)Returns true if newly flushed and newly merge segments
SetMaxMergeDocs (inherited from LogMergePolicy)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}.
SetMaxMergeMBDetermines the largest segment (measured by total byte size of the segment's files, in MB) that may be merged with other segments. Small values (e.g., less than 50 MB) 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. Note that {@link #setMaxMergeDocs} is also used to check whether a segment is too large for merging (it's either or).
SetMergeFactor (inherited from LogMergePolicy) 
SetMinMergeMBSets 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).
SetUseCompoundDocStore (inherited from LogMergePolicy)Sets whether compound file format should be used for newly flushed and newly merged doc store segment files (term vectors and stored fields).
SetUseCompoundFile (inherited from LogMergePolicy)Sets 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 (inherited from LogMergePolicy) 
UseCompoundFile (inherited from LogMergePolicy) 

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

LogByteSizeMergePolicy Class | Lucene.Net.Index Namespace