Open-source project
toshi-search/Toshi avatar
toshi-search/Toshi

Toshi comments two of its five crates out of the workspace

A full-text search engine in rust

4,259 stars135 forksRustMIT

At a glance

What is it?
Toshi is a full text search engine written in Rust and positioned to be to Elasticsearch what Tantivy is to Lucene. The repository is candid about being unfinished, and the build file makes that concrete: two crate directories sit in the tree but are commented out of the workspace, and the default configuration disagrees with its own documentation on the data path and the host.
Who is it for?
Toshi fits someone evaluating a Rust search server who wants to see how a Tantivy-backed engine is put together, and who can read a configuration file and build from source. It does not fit anything you intend to run in production, because the project says so itself in its first line and gates its unstable features behind a flag that is off by default.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 135 days ago.
What is it written in?
Mainly Rust, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 10, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • toshi-search/Toshi4,259 ★ · +3
Star history
Repository2026-09-232026-11-10
toshi-search/Toshi4.3k4.3k

3 Stars in the last 48 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Two of the five crates are commented out of the workspace

Five crate directories sit at the root. Three of them are members of the build.

toml
[workspace]
members = [
    "toshi-server",
#    "toshi-proto",
    "toshi-client",
    "toshi-types",
#    "toshi-raft"
]

Two entries carry a comment character instead of being listed as members: the protocol crate and the raft crate. The commented lines sit inside the array rather than beside it, so the intent was clearly to switch them back on by deleting two characters.

This matters when you read the tree. A directory named for a consensus implementation is present and named correctly, and it will not be built by the commands on the page. A lock file exists at the root, so the resolved dependency set describes a workspace of three crates, not five.

Which means the replication support implied by one of those directories is not reachable from the documented build.

Release builds trade debug assertions and parallelism

The profile section is explicit about what is given up.

toml
[profile.release]
opt-level = 3
debug = false
debug-assertions = false
lto = true
rpath = false
codegen-units = 1

Debug information off, debug assertions off, link-time optimisation on, and a single codegen unit. That last one removes the parallelism inside the compiler, so a release build of this project is a serial optimisation pass by design rather than by accident.

The development profile has one non-default entry, and it applies to dependencies rather than to the project.

toml
[profile.dev.package."*"]
opt-level = 2

Every dependency is compiled at optimisation level 2 even in a debug build, which is a common choice for search code where unoptimised tokenisers dominate a run time. The project's own code is left at the debug default.

rpath is also set to false in the release profile.

The default data path and the documented one disagree

The default configuration is printed in full on the page, and it is worth reading against the sections that follow it.

toml
host = "127.0.0.1"
port = 8080
path = "data2/"
writer_memory = 200000000
log_level = "info"
json_parsing_threads = 4
bulk_buffer_size = 10000
auto_commit_duration = 10
experimental = false

The Path section then shows the same key with a different value, `data/`, and describes it as the directory where the engine stores its data and indices.

So one of the two is stale. The printed default is what the engine will actually use if you change nothing, and it points at a second directory rather than the first.

The Host section also differs, showing host = "localhost" where the default has 127.0.0.1; the port matches the one used later in the verification request, and the writer memory value is a byte count of 200 million.

The stated Rust floor is 1.39.0

The build section names one version.

From the dependency requirements you need 1.39.0 and Cargo installed, and the page points at the standard toolchain installer to get them. The platform claim beside it is Windows, macOS and Linux.

The number is the interesting part, because the project's stated policy is to track only stable Rust and never to use nightly features.

The same policy statement extends to memory safety. The project says it will make a concerted effort to avoid unsafe code in its own source and to vet the libraries underneath it that do use it, and explains the reasoning as needing to be safe, stable and consistent before anyone would consider depending on it.

The first paragraph says the project is not production ready

The page opens with a block quote from the author. It says in plain words that the project is far from production ready and still in development, and attributes the pace to the author being slow.

That statement sits above the description rather than at the end of it, which is where a status note normally goes, and it is the first thing a reader meets.

The second half of the positioning is in the motivation section: the project is explicitly not meant to be a library. The reasoning given is that anyone who would use it will take it off the shelf rather than modify it, and the stable-toolchain requirement is justified by exactly that assumption.

So the intended shape is a running server you deploy, not a crate you depend on. The stated ambition is to be to Elasticsearch what Tantivy is to Lucene.

Setting bulk_buffer_size to zero removes the backpressure

Three settings decide how much memory an ingest costs and when it becomes visible.

The buffer size controls how many parsed documents are held before the ingest blocks. The documentation is explicit that setting it to 0 makes the buffer unbounded, and describes that choice as going off the rails.

The auto commit duration controls how often an index commits on its own when there are documents waiting. Setting it to 0 disables that, and the consequence is stated directly: you then have to commit yourself whenever you submit documents.

The parsing thread count is the third. During a bulk ingest the engine spawns threads to parse each document's JSON as it arrives, and this value is how many.

Together they describe a server that bounds memory by blocking and bounds durability by committing on a timer. Turning either bound off transfers the responsibility to the caller.

The merge policy delegates to Tantivy, or opts out entirely

Segment merging is not implemented here. It is configured.

toml
[merge_policy]
kind = "log"

There are two options. The log policy is the default and is described as Tantivy's own segment merge behaviour, and it carries three additional values, any of which can be left out to fall back to the library's default.

toml
min_merge_size = 8
min_layer_size = 10_000
level_log_size = 0.75

The second option is called nomerge, and under it Tantivy performs no segment merging at all.

So the tuning surface for this engine is a pass-through to the underlying library plus an off switch. That is consistent with the rest of the design, where the engine adds the service and query layers and leaves the indexing primitives where they are.

The unstable block is described as very unstable or outright broken, with the whole section ignored unless its parent flag is true.

The verification response reports version 0.1.1

Running the engine locally is two commands and one check. The build is a release build, and the binary is run from the top level directory so it finds its configuration.

bash
curl -X GET http://localhost:8080/

The expected reply identifies the service and a version.

json
{
  "name": "Toshi Search",
  "version": "0.1.1"
}

That version string is the number to note: there are no GitHub releases, so nothing in the repository records how the version has moved.

Queries go to a named index over HTTP as a JSON body, with a result limit that is optional and defaults to 10. Six shapes are shown, covering an exact term, a fuzzy term with a distance and a transposition switch, a phrase, a numeric range, a regular expression and a boolean with a required and a forbidden clause. A file of ready-made requests sits in the root for trying them, and the test suite runs with the standard cargo command.

Editorial conclusion

Toshi fits someone evaluating a Rust search server who wants to see how a Tantivy-backed engine is put together, and who can read a configuration file and build from source. It does not fit anything you intend to run in production, because the project says so itself in its first line and gates its unstable features behind a flag that is off by default. Before you spend time on it, check four things. That you are on Rust 1.39.0 or newer, which is the floor the page states for a project that promises to track only stable Rust. Whether the features you need are the experimental ones, since they are described as unstable and ignored entirely when the flag is off. What you do about a document that disagrees with its own example, because the default configuration and the section describing it give different data paths. And which of the five crates you actually need, since only three are in the workspace.

Frequently asked questions

How do I build and run Toshi?

Build with cargo build --release, then run ./target/release/toshi from the top level directory so it picks up the configuration in the config directory. A startup banner and an index log line follow. You can confirm the service responds with curl -X GET http://localhost:8080/, which returns the service name and a version string.

What does the Toshi configuration file control?

The default file sets the bind host and port, the data and index path, writer memory in bytes, log level, the number of JSON parsing threads, the bulk buffer size, the auto commit duration, and an experimental flag that switches the rest of the unstable settings on. A merge policy section chooses either the log policy with three tunables or a nomerge policy that disables segment merging.

Why does Toshi require stable Rust?

The project says it will always target stable Rust, will try to avoid unsafe code in its own source, and will vet the libraries underneath it that do use unsafe. The stated reason is that the library has to be safe, stable and consistent to be worth depending on, and it does not want to inherit stability problems from nightly features. The page states a build floor of Rust 1.39.0.

Official sources

  1. Issues
  2. License: MIT
  3. README
  4. toshi-search/Toshi on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/toshi-search-toshi.svg)](https://hysenlabs.com/projects/toshi-search-toshi)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/toshi-search-toshi.svg)](https://hysenlabs.com/projects/toshi-search-toshi)

Was this useful?