# Tantivy

> Fast full-text search engine library written in Rust

Source: https://talira.ai/catalog/tantivy-0cr40qwa
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [search / full text](https://talira.ai/categories/search/full-text), [languages / rust](https://talira.ai/categories/languages/rust)
- Platforms: linux, macos, windows[^1]
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^2]
- Self-hostable: yes[^1]

Tantivy is a full-text search engine library in Rust, inspired by [Apache Lucene](https://talira.ai/catalog/apache-lucene-jesby69k.md): a crate for building a search engine into an application rather than a search server. It indexes text with configurable tokenizers (stemming for 17 Latin languages, third-party Chinese, Japanese and Korean tokenizers), scores with BM25, and supports phrase, range and faceted queries, a natural query language, JSON fields, fast fields and aggregations, with incremental and multithreaded indexing and a startup time under 10 ms. Distributed search is out of scope: [Quickwit](https://talira.ai/catalog/quickwit-vfean97n.md) is built on it for that, and [ParadeDB](https://talira.ai/catalog/paradedb-95q504ea.md) uses it in Postgres. Official Python bindings (tantivy-py) are published on PyPI.

## Links

- GitHub: https://github.com/quickwit-oss/tantivy
- Docs: https://docs.rs/tantivy/

## Problems it solves

- add full-text search with BM25 ranking to my Rust application without running Elasticsearch
- embed a search index inside a command-line tool that starts instantly
- a Lucene-like search library for Rust
- phrase queries, facets and range filters over documents in my own app's index
- keyword search in a Python app without a separate search server
- build a custom search engine on top of a fast inverted index
- hybrid search needs a BM25 index next to my vector index

## Features

- BM25 scoring
- configurable tokenizers, stemming for 17 Latin languages
- natural query language, phrase and range queries
- faceted search and aggregations (histogram, range buckets, stats)
- JSON fields and fast fields (doc values)
- incremental and multithreaded indexing
- compressed document store (LZ4, Zstd)
- mmap directory
- startup under 10 ms
- Python bindings (tantivy-py)
- tantivy-cli for indexing and search from the command line

## Limitations

- Doesn't do distributed search and isn't a search server: it's a crate to build a search engine with (Quickwit is the distributed engine built on it)[^1]

## Capabilities

- Has official SDKs: plan not known

## Trust

Overall: 0.71 out of 1.
Signals: maintenance 1.00, adoption 0.84, momentum 0.64, community 0.93, backing 0.20, extensibility 0.00.

- last commit 5 days ago
- 156 commits in the last 90 days
- latest release 0.26.1 6 months ago
- 16.5k GitHub stars
- 212 contributors
- used by Etsy, ParadeDB, Nuclia, Element

## Alternatives

- [Apache Solr](https://talira.ai/catalog/apache-solr-drfe8yv5.md): The blazing-fast, open source, multi-modal search platform built on the full-text, vector, and geospatial search capabilities of Apache Lucene
- [Apache Lucene](https://talira.ai/catalog/apache-lucene-jesby69k.md): A high-performance, full-featured text search engine library written in Java
- [OramaJS](https://talira.ai/catalog/oramajs-p6bn8ev0.md): Full-text, vector and hybrid search in your browser, server or edge network
- [Meilisearch](https://talira.ai/catalog/meilisearch-zb5gnkp1.md): A lightning-fast search engine that fits effortlessly into your apps, websites, and workflow
- [Typesense](https://talira.ai/catalog/typesense-stdkx3gj.md): Cutting-edge, in-memory search engine for mere mortals. Knowledge of rocket science optional
- [Elasticsearch](https://talira.ai/catalog/elasticsearch-5kvt1ns8.md): Open source search, analytics, and AI platform

## Sources

[^1]: https://github.com/quickwit-oss/tantivy/blob/main/README.md (checked 20 Nov 2026)
[^2]: https://github.com/quickwit-oss/tantivy/blob/main/LICENSE (checked 20 Nov 2026)
