A fast full-text search crate inspired by Apache Lucene design, meant for embedding in custom search servers rather than as a standalone product.
Overview
Tantivy is a full-text search engine library written in Rust. It is positioned closer to Apache Lucene than to turnkey servers such as Elasticsearch: you import the crate and assemble indexing and query logic in your own application. The design explicitly follows Lucene-style architecture.
Documented capabilities include full-text search, incremental indexing, and immutable stored data where updates require delete-and-reindex. After an IndexWriter commit, new documents become searchable once searchers are reloaded. Published benchmarks in the project materials report roughly twice the search latency performance of Lucene on their test harness, though results vary by workload.
Teams needing a ready-made distributed server are pointed to Quickwit, which builds on Tantivy. Language bindings beyond Rust may exist in the community, with varying maintenance levels. FAQ material covers commit visibility, editing constraints, and cross-language use.
Key features
- Full-text indexing and search
- Incremental indexing
- Lucene-inspired architecture
- IndexWriter commit model
- Immutable segment data model
- Rust-native embedding
- Benchmarked query performance
- Searcher reload for fresh results
Use cases
- Custom in-app search backends
- Rust services needing embedded search
- Building on Quickwit-style stacks
- Replacing Lucene in Rust codebases