Method SetMaxBufferedDocs
SetMaxBufferedDocs(Int32)
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 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).
Declaration
public virtual void SetMaxBufferedDocs(int maxBufferedDocs)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxBufferedDocs |