Determines how often segment indices are merged by addDocument(). With smaller values, less RAM is used while indexing, and searches on unoptimized indices are faster, but indexing speed is slower. With larger values, more RAM is used during indexing, and while searches on unoptimized indices are slower, indexing is faster. Thus larger values (> 10) are best for batch index creation, and smaller values (< 10) for indices that are interactively maintained.

This must never be less than 2. The default value is 10.

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

Syntax

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

Parameters

mergeFactor
Type: System..::..Int32

[Missing <param name="mergeFactor"/> documentation for "M:Lucene.Net.Index.IndexModifier.SetMergeFactor(System.Int32)"]

See Also