Table of Contents

Class IndexWriterOptions

Namespace
TantivyDotNet
Assembly
TantivyDotNet.dll
public sealed class IndexWriterOptions
Inheritance
IndexWriterOptions
Inherited Members

Properties

HeapBytes

Total indexing memory budget in bytes, split across indexing threads. Each thread needs at least 15 MB, so Tantivy uses fewer threads if the budget is small. Default 50 MB.

IgnoreUnknownFields

Whether document properties that aren't schema fields are silently dropped. Default false: adding such a document throws TantivyException with InvalidArgument, which catches typos and casing mistakes (field names are case-sensitive, so new { Title = "x" } doesn't fill a title field).

MergePolicy

When to merge segments in the background. Default Default (a LogMergePolicy); None turns background merging off.

ThreadCount

Number of indexing threads, or null (the default) to let Tantivy choose (at most 8).