XERJ is a Rust binary that indexes code, documents, logs, and tabular files for full-text, vector, and hybrid search, exposed via an Elasticsearch-compatible API and MCP.
Overview
XERJ targets AI agents and developers who need fast, local retrieval instead of reading whole repositories into a language model. One process indexes folders of code, PDFs, CSV, JSONL, logs, and related formats, then serves search, optional vector kNN, agent memory namespaces, and batch query APIs.
The engine advertises syntax-aware code indexing, autoindex that infers file types, and compatibility with Elasticsearch 8.x clients for gradual migration. It integrates with MCP clients such as Claude Code and Cursor, offering many MCP tools for search, memory, and optional XERJ Query-1 fact-based answering when the model bundle is installed.
Operations are designed to stay on your hardware: documentation describes offline CPU use on laptops or servers inside your network, with security guidance around binding, TLS, and API keys. Optional Query-1 turns questions into small programs over stored facts and returns evidence or explicit unknown/conflict outcomes rather than open-ended generation.
Typical workflows include reference coding against indexed open-source repos, RAG-style passage retrieval with citations, security pattern search across a tree, log analysis, and long-term agent memory stored in dedicated namespaces.
Key features
- BM25, vector, and hybrid search
- Elasticsearch-compatible HTTP API
- MCP server for agent clients
- Automatic folder indexing
- Code search with tree-sitter symbols
- Agent memory namespaces
- Optional Query-1 fact programs
- Batch search with citations
Use cases
- Coding agents retrieving exact code passages
- Indexing private repos for Q&A
- Security audits across mixed file types
- Agent long-term memory by meaning
- Offline search on owned hardware
Does the same job as
XERJ doesn't name these products itself, but its own description shows it does the same job.