Skip to content

Toshi

Rust full-text search engine modeled on Elasticsearch, built on Tantivy

Permissive (OSI) · MIT

Listed by , founder & editor

22

Health

Dormant

Overview

Stars

4,259

Last commit

3 years ago

Oct 2023

Repository age

8 years

since Jun 2018

Latest version

–

Contributors

–

Releases

0

last 12 months

Language

Rust

Toshi is a full-text search engine written in Rust. It aims to be to Elasticsearch what Tantivy is to Lucene, and it uses Tantivy for indexing. It runs as a standalone server rather than a library, and you configure it with a TOML file that sets host, port, data path and logging.

The configuration exposes details that matter for indexing. You can set writer memory in bytes, the number of JSON parsing threads for bulk ingest, bulk buffer size, auto-commit interval and the segment merge policy. There is also an experimental clustering section with a master and node list. The project targets stable Rust and tries to avoid unsafe code.

It builds on Windows, macOS and Linux with Cargo. The author states it is far from production ready, and the project is dormant, with the last commit in October 2023. Treat it as a project to study or experiment with rather than a drop-in replacement for Elasticsearch.

Who it's for

Rust developers exploring search engine internals

The code is a compact server on top of Tantivy, written in stable Rust.

Skip if: You need a production search service with a stable API.

Hobbyists testing Elasticsearch-like search on small data

A single binary with one TOML file is easy to run locally.

Skip if: You need clustering, security features or ecosystem tooling.

The problem it solves

Elasticsearch is heavy to run for small search needs. Toshi explores a lighter full-text search server written in Rust.

Strengths

  • Built on Tantivy, a Rust search library inspired by Lucene
  • Builds on Windows, macOS and Linux
  • Tunable writer memory, merge policy and bulk ingest threads
  • MIT license

Trade-offs

  • Author says it is far from production ready
  • Dormant: last commit in October 2023
  • Clustering is marked experimental
  • Needs a Rust toolchain to build

Self-host Toshi

Self-hostable
Yes

Frequently asked questions

Is Toshi free?

Yes. It uses the MIT license and you can self-host it.

Is it ready for production?

No. The author says it is far from production ready.

Which platforms can build it?

It should build on Windows, macOS and Linux with Rust and Cargo installed.

What port does it use by default?

The default config binds to 127.0.0.1 on port 8080.

Similar tools in Site search engines

Yacy

Site search engines

Self-hosted, peer-to-peer search engine with its own crawler, for the web or an intranet

4.1k 500 20 days ago Slowing GPL-2.0

degoog

Site search engines

2.6k 117 2 days ago Thriving AGPL-3.0

SeekStorm

Site search engines

1.9k 75 today Thriving Apache-2.0

RustXNG

Site search engines

991 82 7 days ago Thriving AGPL-3.0

Nixiesearch

Site search engines

621 15 11 months ago Dormant Apache-2.0