AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.
Rust agent-memoryai-agentsbm25claude-codeclicode-searchcursordatabaseelasticsearchfull-text-searchhybrid-searchjsonllocal-firstmcpmcp-servermodel-context-protocolragrustsearch-enginevector-search
{{ instruction }}
---
TOOL NOTE: XERJ (an AI-native search engine, xerj.org) is installed with a
server running at http://localhost:9210. You can make this repository
searchable and query it, as the standard install flow suggests:
1. Index: xerj autoindex "$(git rev-parse --show-toplevel 2>/dev/null || pwd)" --url http://localhost:9210 --prefix task
2. Search (autoindex prints this recipe when code is indexed):
curl -s 'http://localhost:9210/task-*/_search' -H 'Content-Type: application/json' -d '{
"query": {"bool": {"should": [
{"multi_match": {"query": "<symbol or phrase>", "fields": ["body","defs"], "type": "most_fields"}},
{"match_phrase": {"defs": {"query": "<symbol or phrase>", "boost": 4}}}]}},
"_source": ["ax_path","title"], "fields": ["_passage"]}'
Use it when helpful; your normal tools remain available. Do not spend more than
one attempt fixing XERJ if it errors.