Table of Contents

Method CreateInRam

Namespace
TantivyDotNet
Assembly
TantivyDotNet.dll

CreateInRam(Schema, IndexSettings?)

Creates an index held entirely in memory. It disappears when disposed.

public static SearchIndex CreateInRam(Schema schema, IndexSettings? settings = null)

Parameters

schema Schema

The index's fields.

settings IndexSettings

Doc store compression and other settings, or null for Default.

Returns

SearchIndex

Exceptions

TantivyException

With InvalidArgument if the settings don't fit the schema (for example SortBy names a field that isn't fast).