Method Create
- Namespace
- TantivyDotNet
- Assembly
- TantivyDotNet.dll
Create(string, Schema, IndexSettings?)
Creates a new index in directory, creating the directory if needed.
public static SearchIndex Create(string directory, Schema schema, IndexSettings? settings = null)
Parameters
directorystringThe index directory.
schemaSchemaThe index's fields.
settingsIndexSettingsDoc store compression and other settings, or null for Default. They're saved with the index.
Returns
Exceptions
- TantivyException
With IndexAlreadyExists if the directory already holds an index, or InvalidArgument if the settings don't fit the schema.