Property MaxMergeDocs
MaxMergeDocs
Gets or sets 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
Note that this method is a convenience method: it just calls mergePolicy.getMaxMergeDocs as long as mergePolicy is an instance of Lucene.Net.Index.IndexWriter.LogMergePolicy. Otherwise an IllegalArgumentException is thrown.
The default merge policy (LogByteSizeMergePolicy) also allows you to set this limit by net size (in MB) of the segment, using MaxMergeMB.
Declaration
public virtual int MaxMergeDocs { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |