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}.

Namespace: Lucene.Net.Index
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public virtual void SetMaxMergeDocs(
	int maxMergeDocs
)
Visual Basic
Public Overridable Sub SetMaxMergeDocs ( _
	maxMergeDocs As Integer _
)
Visual C++
public:
virtual void SetMaxMergeDocs(
	int maxMergeDocs
)

Parameters

maxMergeDocs
Type: System..::..Int32

[Missing <param name="maxMergeDocs"/> documentation for "M:Lucene.Net.Index.LogMergePolicy.SetMaxMergeDocs(System.Int32)"]

See Also