zedsearch

package module
v1.0.0-beta4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

ZedSearch

CI Nightly Release Go Reference Go Version golangci-lint Release Docs codecov

English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Français | Deutsch | Español | Русский | Português

ZedSearch

ZedSearch is a search engine that does full text indexing. It is a lightweight alternative to Elasticsearch and runs using a fraction of the resources. It uses bluge (via the vcaesar/riot fork) 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 2 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).

Check the below video for a quick demo of ZedSearch.

Zinc Youtube

Why ZedSearch

While Elasticsearch is a very good product, it is complex and requires lots of resources and is more than a decade old. I built ZedSearch so it becomes easier for folks to use full text search indexing without doing a lot of work.

Features:

go + gin + react

  1. Provides full text indexing capability
  2. Single binary for installation and running. Binaries available under releases for multiple platforms.
  3. Web UI for querying data written in React (embedded in the binary)
  4. Compatibility with Elasticsearch APIs for ingestion of data (single record and bulk API)
  5. Out of the box authentication
  6. Schema less - No need to define schema upfront and different documents in the same index can have different fields.
  7. Index storage in disk
  8. aggregation support
  9. Opt-in logs indexes with event-time normalization and log search defaults

Documentation

Documentation is available at https://zincsearch-docs.zinc.dev/

Screenshots

Search screen

Search screen

Index screen

Index screen

Getting started

Quickstart

Check Quickstart

Releases

ZedSearch has hundreds of production installations.

Build

Source builds are API-only by default: no Node.js, npm, or frontend/ directory is needed. Set first-start credentials via ZED_FIRST_ADMIN_USER / ZED_FIRST_ADMIN_PASSWORD (or conf/zed.toml), then run from the repository root:

go run cmd/zedsearch/main.go      # API-only, :4080
go run cmd/zedsearch/main.go web  # build and embed the console, then start
# Equivalently, from cmd/zedsearch/: go run main.go [web]

web requires the source checkout, Go, Node.js 24+ and npm. It runs npm ci, npm run build, and go build -tags web, producing test/zedsearch-web (.exe on Windows). The resulting binary embeds all UI assets and can be copied to another host without frontend files or Node.js. Startup retains the caller's working directory, configuration, and environment. A binary already built with -tags web starts directly without rebuilding, with or without the web argument.

For manual builds:

go build -o zedsearch ./cmd/zedsearch  # API-only
(cd frontend && npm ci && npm run build)
go build -tags web -o zedsearch ./cmd/zedsearch

API-only nodes return version JSON at /; /ui/ and the Swagger UI are disabled. Web builds redirect / to /ui/ and serve Swagger when enabled in configuration. sh/build.sh, release binaries, and the standard Docker image still include the UI.

The experimental multi-node document store lives in distribution/cmd, not the empty cmd/distr/ directory. It never requires frontend assets:

(cd distribution/cmd && go run main.go -id n1 -data ../../test/n1 -bootstrap)

Use a distinct ID, data directory, Raft address and gRPC address for each node; see distribution/README.md for joins and TLS. This is an independent replicated document store, not a distributed ZedSearch REST/UI server.

Note — Nightly / dev-image (push) fails on forks:

Error: buildx failed with: ERROR: failed to build: failed to solve: failed to push ghcr.io/vcaesar/zedsearch-dev:0.4.11-8792c59-dev: denied: permission_denied: The requested installation does not exist.

The workflow logs in to GHCR with the repository's GITHUB_TOKEN, which can only push packages under the owner of the repository running the workflow. On a fork the token has no access to the vcaesar org, so the push is denied. Either run the workflow from vcaesar/zedsearch, or change env.IMAGE in nightly.yml to ghcr.io/<your-owner>/zedsearch-dev (and make sure the package is linked to the repo / the repo has packages: write).

Community

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:

  1. https://github.com/jorgeloaiza48/Enron-Email-DataSet
  2. https://github.com/jhojanperlaza/email_search_engine
  3. https://github.com/carlosarraes/zinmail
  4. https://github.com/devjopa/golab-search
  5. https://github.com/avaco2312/zincsearch
  6. https://github.com/paolorossig/email-indexer
  7. https://github.com/ulimonte05/zincsearching

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFrontendAssets

func GetFrontendAssets() (fs.FS, error)

GetFrontendAssets returns nil in API-only builds. Build with -tags web to embed the UI.

Types

This section is empty.

Directories

Path Synopsis
cmd
zedsearch command
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.
pkg
handlers/sql
Package sql exposes the Elasticsearch SQL endpoints.
Package sql exposes the Elasticsearch SQL endpoints.
logs
Package logs supplies the logs profile for ZedSearch's WAL-backed indexes.
Package logs supplies the logs profile for ZedSearch's WAL-backed indexes.
meta/elastic
Package elastic holds the ElasticSearch specific meta declarations and util functions.
Package elastic holds the ElasticSearch specific meta declarations and util functions.
sql
Package sql implements the Elasticsearch SQL API: it parses a subset of SQL SELECT, translates it to the zed query DSL and formats the result.
Package sql implements the Elasticsearch SQL API: it parses a subset of SQL SELECT, translates it to the zed query DSL and formats the result.
uquery/analysis/internal/testutil
Package testutil holds helpers shared by the analysis test packages.
Package testutil holds helpers shared by the analysis test packages.
wal
zhttp
Package zhttp is the HTTP layer the handlers are written against.
Package zhttp is the HTTP layer the handlers are written against.
test
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL