quickwit-oss /tantivy
Tantivy is a full-text search engine library inspired by Apache Lucene and written in Rust
★ 16,441⑂ 1,050👁 138⑃ 2,097● 1,159▤ 49
+2
Daily
16,441
stars
1,050
forks
138
watchers
2,097
prs
1,159
issues
49
releases
README
Fast full-text search engine library written in Rust If you are looking for an alternative to Elasticsearch or Apache Solr, check out Quickwit, our distributed search engine built on top of Tantivy. Tantivy is closer to Apache Lucene than to Elasticsearch or Apache Solr in the sense it is not an off-the-shelf search engine server, but rather a crate that can be used to build such a search engine. Tantivy is, in fact, strongly inspired by Lucene's design. Benchmark The following benchmark breaks down the performance for different types of queries/collections. Your mileage WILL vary depending on the nature of queries and their load. Details about the benchmark can be found at this repository. Features - Full-text search - Configurable tokenizer (stemming available for 17 Latin languages) with third party support for Chinese (tantivy-jieba and cang-jie), Japanese (lindera, Vaporetto, and tantivy-tokenizer-tiny-segmenter) and Korean (lindera + lindera-ko-dic-builder) - Fast (check out the :racehorse: :sparkles: benchmark :sparkles: :racehorse:) - Tiny startup time ( FAQ Can I use Tantivy in other languages? - Python → tantivy-py - Ruby → tantiny You can also find other bindings on GitHub but they may be less maintained. What are some examples of Tantivy use? - seshat: A matrix message database/indexer - tantiny: Tiny full-text search for Ruby - lnx: adaptable, typo tolerant search engine with a REST API - Bichon: A lightweight, high-performance Rust email archiver with WebUI - and more! On average, how much faster is Tantivy compared to Lucene? - According to our search latency benchmark, Tantivy is approximately 2x faster than Lucene. Does tantivy support incremental indexing? - Yes. How can I edit documents? - Data in tantivy is immutable. To edit a document, the document needs to be deleted and reindexed. When will my documents be searchable during indexing? - Documents will be searchable after a commit is called on an IndexWriter. Existing IndexReaders will also need to be reloaded in order to reflect the changes. Finally, changes are only visible to newly acquired Searcher.
Top issues
#563score fuzzy term by distance35 comments · 2019-06-10#541wasm RFC24 comments · 2019-04-29#2577Attempt to multiply with overflow22 comments · 2025-02-04#815(Approximate) Nearest Neighbour / Vector Similarity Search18 comments · 2020-04-19#2628iOS compilation failure due to zstd17 comments · 2025-04-18#44Geo-search16 comments · 2016-10-17#2193Panic from indexWriter.commit() call15 comments · 2023-09-28#557Read only mode15 comments · 2019-06-02
Discussions
Latest release
Tantivy v0.26.1 0.26.1 2026-05-10What's Changed chore: Release by @PSeitz in https://github.com/quickwit-oss/tantivy/pull/2686 update release instructions by @PSeitz-dd in https://github.com/quickwit-oss/tantivy/pull/2687 feat: Regex query grammar by @Darkheir in https://github.com/quickwit-oss/tantivy/pull/2677 Update CHANGELOG.md for bugfixes by @PSeitz in https://github.com/quickwit-oss/tantivy/pull/2674 This PR changes the logic used on the ingestion of floats. by @fulmicoton in https://github.com/quickwit-oss/tantivy/pull/2692 Add fast field fallback for term query if not indexed by @PSeitz-dd in https://gith