Determines the minimal number of documents required before the buffered in-memory documents are flushed as a new Segment. Large values generally gives faster indexing.

When this is set, the writer will flush every maxBufferedDocs added documents. Pass in {@link #DISABLE_AUTO_FLUSH} to prevent triggering a flush due to number of buffered documents. Note that if flushing by RAM usage is also enabled, then the flush will be triggered by whichever comes first.

Disabled by default (writer flushes by RAM usage).

enabled but smaller than 2, or it disables maxBufferedDocs when ramBufferSize is already disabled

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

Syntax

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

Parameters

maxBufferedDocs
Type: System..::..Int32

[Missing <param name="maxBufferedDocs"/> documentation for "M:Lucene.Net.Index.IndexWriter.SetMaxBufferedDocs(System.Int32)"]

See Also