About XERJ
XERJ is a local AI search tool written in Rust that indexes any folder automatically. The idea is that a coding agent can query the index instead of reading files one by one, which cuts the amount of text it has to process. The same index supports search, retrieval-augmented generation, security audits, and agent memory. It is released under the Apache-2.0 license and is still at a release-candidate stage.
It handles code, documents, logs, and PDFs and offers keyword, hybrid, semantic, vector, and graph-style search. It exposes an Elasticsearch-compatible API, so existing clients and tools can connect without changes. Its headline use case is reference coding, where an agent finds relevant open-source repositories, indexes them, and reuses how they solved similar problems.
The project reports token savings from its own studies and field reports, which are vendor claims rather than independent results. It can be installed with a one-prompt command or run manually, with Windows and other platforms noted in the README. It suits developers using AI coding agents and teams that need fast local search over large folders.
Key features
- Automatic indexing of any folder
- Search over code, docs, logs, and PDFs
- Hybrid, semantic, and vector search
- Elasticsearch-compatible API
- Agent memory and RAG support
- Runs locally, written in Rust
Good fit for
- →Giving coding agents fast project search
- →Local RAG over documents and logs
- Built with
- Rust
- Tags
- search
- ai-agents
- rag
- elasticsearch-compatible
- vector-search
- rust
- local-first
- indexing
XERJ: questions and answers
- What is XERJ used for?
- XERJ is a local, Elasticsearch-compatible search engine written in Rust that automatically indexes code, docs, logs, and PDFs so AI coding agents can retrieve exactly what they need. It is a good fit for giving coding agents fast project search, and local RAG over documents and logs.
- Is XERJ open source?
- Yes. XERJ is open source under the Apache-2.0 licence. Its source code is on GitHub at xerj-org/xerj and is written mainly in Rust.
- Is XERJ free?
- Yes. XERJ is open source, so the software itself is free to use.
- Can I self-host XERJ?
- Yes. XERJ can be self-hosted on your own server or infrastructure.
- What is XERJ an alternative to?
- XERJ is an open-source alternative to Elastic. Other open-source alternatives to Elastic include Vespa, RediSearch and SeekStorm.
- Is XERJ actively maintained?
- Yes. The most recent commit to XERJ was on 2 October 2026, and the latest release is v1.0.0-rc.80, published on 1 October 2026. The project has 2.6k stars on GitHub.
Open-source alternatives to XERJ
See all
Vespa
Search
The AI search platform
Apache-2.0vs Elastic★ 7.1k
RediSearch
Search
A query and indexing engine for Redis, providing secondary indexing, full-text search, vec
OSSvs Elastic★ 6.2k
SeekStorm
Search
SeekStorm: vector & lexical search - in-process library & multi-tenancy server, in Rust.
Apache-2.0vs Algolia★ 1.9k
Lnx
Search
A flexible, performant and reliable search database without the AI bullshit.
MITvs Algolia★ 1.5k
Typesense
Search
Typesense is an open-source search engine for fast, typo-tolerant site and app search, wit
GPL-3.0vs Algolia★ 27kSonic
Search
crates.io serves as a central registry for sharing crates, which are packages or libraries
MPL-2.0vs Elastic★ 21k
SaaS alternatives to XERJ
See all
Elastic
Search
Elastic builds Elasticsearch, a distributed search and analytics engine used for application search, logs, vector search and security analytics.
SaaS
Amazon OpenSearch Service
Search
Managed AWS service for running OpenSearch clusters for search and log analytics
SaaS
Azure AI Search
Search
Azure managed search with full-text, vector and hybrid retrieval
SaaS
Vectara
Search
Managed retrieval and RAG platform with semantic search APIs
SaaS
Coveo
Search
AI search and relevance platform for commerce, service and workplace sites
SaaS
dtSearch
Search
Desktop and enterprise full-text search engine for large document sets
SaaS

