elasticsearch vs xerj
Two of the top projects in RAG and search, side by side: who leads on each score part and who each one suits, then setup, license, activity and what each review found.
elasticsearch
Distributed search, analytics and vector database with a REST API
xerj
Single-binary Rust search engine with Elasticsearch API, MCP server and agent memory
Verdict
elasticsearch ranks higher, 93 to 90. Of the 4 score parts we measure for both, elasticsearch leads on 2, xerj on 1 and 1 is even.
- Adoptionelasticsearch leads by 8 points, 99 to 91.
- FreshnessEven at 100.
- Maintenancexerj leads by 11 points, 98 to 87.
- Agent-readyelasticsearch leads by 40 points, 70 to 30: a wide gap.
Pick elasticsearch if you are
Engineers needing a search or vector store behind RAG or log analytics
- Handles full-text, vector and hybrid search in one engine
- Documents are searchable in near real-time from any cluster node
Pick xerj if you are
Engineers adding code search and memory to agents, or replacing Elasticsearch
- Single Rust binary, no JVM; reports 1448 of 1458 Elasticsearch YAML conformance tests passing
- `xerj autoindex` infers datasets and indexes code with tree-sitter symbols, no schema needed
| What we compare | elasticsearch | xerj |
|---|---|---|
| Score parts, out of 100 | ||
| Adoption | 99, widely used | 91, widely used |
| Freshness | 100, active | 100, active |
| Maintenance | 87, healthy | 98, healthy |
| Agent-ready | 70, partly | 30, minimal |
| Facts from GitHub and the README | ||
| Stars | 78.8k | 22.7k |
| License | custom license (read the license) | Apache-2.0 (permissive) |
| Last commit | Nov 2026 | Nov 2026 |
| Last release | Nov 2026 | Nov 2026 |
| Language | Java | Rust |
| Docker | No | No |
| GPU | Not needed | Not needed |
| arm64 or Apple Silicon | Not stated | Mentioned |
elasticsearch
Elasticsearch is a distributed search and analytics engine written in Java that indexes JSON documents through REST APIs. It supports full-text search, vector search, logs and metrics, and is used as a retrieval store for RAG applications. The README covers a local Docker setup with Kibana via the start-local script, building from source with Gradle, and clients such as Python and curl.
Who it is for: Engineers needing a search or vector store behind RAG or log analytics
Strengths
- Handles full-text, vector and hybrid search in one engine
- Documents are searchable in near real-time from any cluster node
- Official language clients plus REST API and Kibana Dev Tools console
- Bulk NDJSON API and data streams suit logs and metrics ingestion
Weaknesses
- Not an app starter: a search engine to integrate, not a RAG template
- License is reported as NOASSERTION, so terms need checking before use
- The start-local setup is not for production and disables HTTPS
- Trial license with all features reverts to Basic tier after one month
- Java
- Needs Docker (for start-local), Kibana (optional)
xerj
XERJ is a Rust search engine that autoindexes folders of code, docs, logs, CSV, SQLite and PDFs for BM25, vector and hybrid search behind an Elasticsearch-compatible API. It also exposes an MCP server and a /_memory namespace API so coding agents can retrieve passages with file:line instead of grepping. Release binaries from rc.101 add XERJ Query-1, a proprietary model that answers questions over stored facts.
Who it is for: Engineers adding code search and memory to agents, or replacing Elasticsearch
Strengths
- Single Rust binary, no JVM; reports 1448 of 1458 Elasticsearch YAML conformance tests passing
- `xerj autoindex` infers datasets and indexes code with tree-sitter symbols, no schema needed
- Default lexical embedder runs offline; neural embedder is opt-in at about 90 MB download
- Ships MCP tools and /_memory API for agent long-term memory
Weaknesses
- XERJ Query-1 and /_facts are absent from the public source; release binaries only
- Query-1 model crates are proprietary; training and evaluation data are not public
- Query-1 mishandles sums and declines all 20 questions on a 95,000-fact namespace
- rc.101 upgrades the data directory to format 4; rc.100 cannot reopen it
- Rust, XERJ Query-1 (release binaries only), lexical embedder (default), neural embedder (opt-in)
More in RAG and search
Building with these?
We help teams pick an open-source AI stack and run it in production. Client work never changes a rank.
AI app development →Send a project brief (opens in a new tab)