
English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Français | Deutsch | Español | Русский | Português
ZedSearch
ZedSearch is a search engine that does full text and vector indexing, and cloud-native platform for observability logs, metrics, traces, analytics, monitoring, AI.
It is a lightweight alternative to Elasticsearch, OpenSearch, Datadog, Splunk and runs using a fraction of the resources.
It uses the vcaesar/riot as the underlying indexing library.
It is very simple and easy to operate as opposed to Elasticsearch which requires a couple dozen knobs to understand and tune. You can get ZedSearch up and running in 1 minutes.
It is a drop-in replacement for Elasticsearch if you are just ingesting data using APIs and searching using kibana (Kibana is not supported with ZedSearch. ZedSearch provides its own UI).
Homebrew
macOS and Linux, via vcaesar/homebrew-tap:
brew install vcaesar/tap/zedsearch
Docker
Images are on Docker Hub as riotgo/zedsearch (linux/amd64, linux/arm64, linux/arm/v7):
Set ZED_FIRST_ADMIN_PASSWORD in your environment to your chosen password before running:
docker run -d --name zedsearch \
-p 4080:4080 \
-v zedsearch-data:/data -e ZED_DATA_PATH=/data \
-e ZED_FIRST_ADMIN_USER="admin" \
-e ZED_FIRST_ADMIN_PASSWORD="your_password_zed#123" \
riotgo/zedsearch:latest
The named volume zedsearch-data is writable by the container user (uid 10001); to use a host directory instead, run mkdir -p ./data && sudo chown 10001:10001 ./data and mount -v "$PWD/data:/data".
Cluster
Nodes share an etcd and own the indexes between them, with replicas and failover; any node serves any request. Every node needs a unique ZED_CLUSTER_NODE_ID, a ZED_CLUSTER_ADVERTISE_ADDR the other nodes can reach and the same ZED_CLUSTER_SECRET. See pkg/cluster for the model, settings and limits.
Docker
# Use your own admin password and a fresh cluster secret for every deployment.
ZED_PASSWORD='your_password_zed#123'
ZED_SECRET="$(openssl rand -hex 32)"
docker network create zed
docker run -d --name zed-etcd --network zed --restart unless-stopped \
-v zed-etcd-data:/etcd-data quay.io/coreos/etcd:v3.7.3 etcd \
--listen-client-urls http://0.0.0.0:2379 --advertise-client-urls http://zed-etcd:2379 \
--data-dir /etcd-data
# Node to node traffic, with the secret, is plain HTTP on the private network "zed",
# so ports are published on localhost only. Across hosts, advertise https:// addresses
# or use an encrypted network. --restart retries a node that started before etcd.
for i in 1 2 3; do
docker run -d --name zed$i --network zed -p 127.0.0.1:408$i:4080 --restart unless-stopped \
-v zed$i-data:/data -e ZED_DATA_PATH=/data \
-e ZED_FIRST_ADMIN_USER="admin" -e ZED_FIRST_ADMIN_PASSWORD="$ZED_PASSWORD" \
-e ZED_CLUSTER_ENABLE=true -e ZED_CLUSTER_NAME=prod -e ZED_CLUSTER_NODE_ID=node-$i \
-e ZED_CLUSTER_ADVERTISE_ADDR=http://zed$i:4080 -e ZED_CLUSTER_SECRET="$ZED_SECRET" \
-e ZED_ETCD_ENDPOINTS=http://zed-etcd:2379 \
riotgo/zedsearch:latest
done
curl --retry 10 --retry-connrefused -u admin:"$ZED_PASSWORD" http://localhost:4081/api/cluster/nodes
# Back up the shared metadata in zed-etcd-data; restore a snapshot into a new
# volume with `etcdutl snapshot restore` before starting zed-etcd on it.
docker exec zed-etcd etcdctl snapshot save /etcd-data/snapshot.db
docker cp zed-etcd:/etcd-data/snapshot.db ./etcd-snapshot.db
Kubernetes
k8s/cluster.yaml runs a three-node StatefulSet zedsearch-cluster behind the Service zedsearch, with a single-node etcd (run three members for production):
kubectl create namespace zedsearch
kubectl -n zedsearch create secret generic zedsearch-admin \
--from-literal=ZED_FIRST_ADMIN_USER=admin --from-literal=ZED_FIRST_ADMIN_PASSWORD='your_password_zed#123'
kubectl -n zedsearch create secret generic zedsearch-cluster \
--from-literal=ZED_CLUSTER_SECRET="$(openssl rand -hex 32)"
kubectl apply -f k8s/cluster.yaml
kubectl -n zedsearch port-forward svc/zedsearch 4080:4080
Why ZedSearch
While Elasticsearch is a very good product, it is complex and requires lots of resources and is more than a decade old, so many memory and others.
I built ZedSearch so it becomes easier for folks to use full text and vector search indexing, observability and data analytics without doing a lot of work.
Features:
go + gin (or fiber v3 with -tags fiber) + react
- Fast queries and smaller index files
- Provides full text and vector indexing capability
- Single binary for installation and running. Binaries available under releases for multiple platforms.
- Web UI for querying data written in React (embedded in the binary)
- Compatibility with Elasticsearch APIs for ingestion of data (single record and bulk API)
- Out of the box authentication
- Schema less - No need to define schema upfront and different documents in the same index can have different fields.
- Index storage in disk, s3, minio and others
- aggregation and full Elasticsearch features support
- multi languages support, support CJK
- Opt-in logs indexes with event-time normalization and log search defaults, ingesting JSON, Splunk HEC, Loki and OTLP/HTTP JSON (OpenObserve-compatible) and Logstash events
- kNN vector search and geo queries (
geo_distance, geo_bounding_box, geo_polygon, geo_shape)
- Elasticsearch SQL API (
/es/_sql, /es/_sql/translate) and MySQL CREATE TABLE schemas as mappings
- High-availability cluster: etcd-coordinated partition ownership, fenced handoff, replicas and scatter-gather search
- OpenTelemetry tracing over OTLP/HTTP (
zed_tracing_enable); every request gets an X-Trace-Id that follows it across nodes
- Fleet and
zedagent (agent/): enroll agents, manage policies, ship log files and system metrics, or run the agent standalone
- Robots-aware web crawler (
cmd/zedcrawl) with PageRank and bulk indexing into ZedSearch
Benchmarks
Seven search-application queries over 50,000 documents, top 10 plus the exact total, on a MacBook Pro M1 with every server in Docker: a filtered term query, an OR over two fields, a sort by price over all documents, page 101, a terms and a histogram aggregation, and highlighting. Lower is better, except QPS; "—" means the engine cannot express the query (Meilisearch has no numeric histogram, OpenObserve does not highlight).
| Query |
ZedSearch |
ZincSearch 0.4.10 |
Elasticsearch 9.5 |
OpenSearch 3.9 |
Meilisearch 1.56 |
OpenObserve 1.1 |
filtered (1 client) |
0.89 ms |
3.43 ms |
1.38 ms |
1.44 ms |
1.87 ms |
9.44 ms |
filtered (8 clients) |
3,216 QPS |
471 QPS |
2,742 QPS |
3,066 QPS |
1,924 QPS |
321 QPS |
sort_price (50k docs) |
0.74 ms |
76.0 ms |
2.52 ms |
1.58 ms |
1.09 ms |
4.40 ms |
multi_field title + body |
0.63 ms |
2.04 ms |
1.44 ms |
1.51 ms |
1.19 ms |
21.0 ms |
deep_page from 1000 |
1.24 ms |
3.40 ms |
1.42 ms |
1.47 ms |
12.7 ms |
18.1 ms |
agg_terms category |
1.48 ms |
5.55 ms |
1.66 ms |
2.12 ms |
1.63 ms |
18.6 ms |
agg_histogram price |
1.00 ms |
20.1 ms |
1.67 ms |
1.72 ms |
— |
18.7 ms |
highlight body |
0.81 ms |
2.27 ms |
1.96 ms |
1.97 ms |
1.92 ms |
— |
Single queries (v2)
The v2 queries from the same sessions, one query type each. Meilisearch cannot express OR or exact phrases.
| Query |
ZedSearch |
ZincSearch 0.4.10 |
Elasticsearch 9.5 |
OpenSearch 3.9 |
Meilisearch 1.56 |
OpenObserve 1.1 |
term rare |
0.50 ms |
1.03 ms |
1.43 ms |
1.16 ms |
1.14 ms |
15.7 ms |
term mid |
0.58 ms |
1.82 ms |
1.28 ms |
1.27 ms |
1.16 ms |
17.6 ms |
term keyword |
0.57 ms |
0.82 ms |
1.75 ms |
2.32 ms |
1.03 ms |
5.59 ms |
bool should |
0.63 ms |
1.12 ms |
1.61 ms |
1.75 ms |
— |
26.7 ms |
bool must |
1.01 ms |
1.79 ms |
2.36 ms |
3.30 ms |
1.28 ms |
24.1 ms |
range |
0.64 ms |
2.56 ms |
1.32 ms |
1.28 ms |
1.32 ms |
5.31 ms |
match_all |
0.66 ms |
4.12 ms |
1.48 ms |
1.38 ms |
1.03 ms |
4.68 ms |
prefix w1* |
0.71 ms |
214.5 ms |
1.87 ms |
2.66 ms |
1.32 ms |
11.9 ms |
match_phrase |
10.3 ms |
55.6 ms |
12.7 ms |
12.6 ms |
— |
16.3 ms |
bool should (8 clients) |
5,179 QPS |
1,292 QPS |
2,707 QPS |
2,616 QPS |
— |
131 QPS |
Docker image (uncompressed), text index of the same 50,000 documents (about 25 MB for ZedSearch, Elasticsearch and OpenSearch after _flush), and memory / CPU over the whole run (100% = 1 vCPU), the data is the median of three runs.
| Resource |
ZedSearch |
ZincSearch 0.4.10 |
Elasticsearch 9.5 |
OpenSearch 3.9 |
Meilisearch 1.56 |
OpenObserve 1.1 |
| Docker image |
56.4 MB |
72.4 MB |
1,195 MB |
1,311 MB |
370 MB |
434 MB |
| Text index, 50k docs |
25.9 MB |
133.3 MB |
25.8 MB |
25.7 MB |
454 MB |
14.2 MB (Not indexed) |
| Memory idle |
14 MiB |
64 MiB |
2,674 MiB |
2,699 MiB |
179 MiB |
387 MiB |
| Memory peak |
388 MiB |
858 MiB |
3,185 MiB |
3,191 MiB |
1,014 MiB |
919 MiB |
| CPU mean |
134% |
366% |
157% |
156% |
230% |
140% |
| CPU peak |
553% |
710% |
620% |
529% |
545% |
519% |
Documentation
Documentation is available at docs/web, API documentation at zedsearch-docs
Screenshots
Search screen

Index screen

Getting started
Quickstart
Check Quickstart
Releases
ZedSearch has hundreds of production installations.
Binaries for every platform are on the releases page. The default archives are not UPX-compressed; for a smaller download, all Linux builds and the Windows amd64 build also ship a UPX-packed *_upx.tar.gz (slightly slower startup, and some antivirus tools may flag packed .exe files).
Build
Set ZED_FIRST_ADMIN_USER / ZED_FIRST_ADMIN_PASSWORD or configure conf/zed.toml (see below), then run from the repository root:
go run cmd/zedsearch/main.go # API-only, :4080
go run cmd/zedsearch/main.go web # with the web UI (Node.js 24+ and npm)
web produces test/zedsearch-web, a standalone binary with the UI embedded.
Configuration
Settings are applied in order: built-in defaults (pkg/config/default.toml), then the optional conf/zed.toml in the working directory, then non-empty environment variables. Every key is also an environment variable in uppercase, e.g. zed_server_port → ZED_SERVER_PORT.
# conf/zed.toml
zed_first_admin_user = "admin"
zed_first_admin_password = "change-me"
zed_server_port = "4080"
zed_data_path = "./data"
zed_log_level = "info"
[Shard]
zed_shard_num = 3
- Only list the keys you change; grouped keys keep their table header from
default.toml ([Shard], [S3], [Etcd], ...).
- Unknown keys fail startup. Durations are in nanoseconds, sizes in bytes.
- The first admin credentials only create the admin user on first start; change the password after logging in and never commit real credentials.
Examples
You can use ZedSearch to index and search any data. Here are some examples that folks have created to index and search enron email dataset using zedsearch:
- https://github.com/jorgeloaiza48/Enron-Email-DataSet
- https://github.com/jhojanperlaza/email_search_engine
- https://github.com/carlosarraes/zinmail
- https://github.com/devjopa/golab-search
- https://github.com/avaco2312/zincsearch
- https://github.com/paolorossig/email-indexer
- https://github.com/ulimonte05/zincsearching