API reference
Everything public is in the TantivyDotNet namespace. The main entry points:
| Type | Role |
|---|---|
| SchemaBuilder | Declares fields and analyzers; builds a Schema |
| SearchIndex | Creates or opens an index; makes writers, searchers and searcher managers |
| IndexWriter | Adds, updates and deletes documents; commits |
| Searcher | Runs queries against a snapshot |
| SearcherManager | Shares one searcher across requests and refreshes it |
| Query | Builds queries in code or parses query text |
| SearchOptions | Paging, sorting, returned fields, snippets, facets and aggregations |
| SearchResults | Hits, total count, facet counts and aggregation results |
| TantivyException | Errors from the native engine, with a TantivyErrorCode |