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
schemaSchemaThe index's fields.
settingsIndexSettingsDoc store compression and other settings, or null for Default.
Returns
Exceptions
- TantivyException
With InvalidArgument if the settings don't fit the schema (for example SortBy names a field that isn't fast).