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
ES API Compatibility Test
Date: 2026-04-15T23:26:15.053111 xerj: localhost:9800 ES: 127.0.0.1:9300
Summary
| Metric | Count |
|---|---|
| PASSED | 27 |
| FAILED | 4 |
| Total | 31 |
| Pass rate | 87.1% |
Results
| Test | Status | xerj HTTP | ES HTTP | Notes |
|---|---|---|---|---|
| GET / | ✅ PASS | 200 | 200 | |
| GET /_cluster/health | ✅ PASS | 200 | 200 | |
| GET /_cat/indices | ✅ PASS | 200 | 200 | |
| PUT index with mapping | ✅ PASS | 200 | 200 | |
| GET /{index} | ✅ PASS | 200 | 200 | |
| GET /{index}/_mapping | ✅ PASS | 200 | 200 | |
| GET /{index}/_settings | ✅ PASS | 200 | 200 | |
| GET /_count | ✅ PASS | 200 | 200 | |
| GET /{index}/_doc/{id} | ✅ PASS | 200 | 200 | |
| PUT /{index}/_doc/{id} | ✅ PASS | 200 | 201 | |
| DELETE /{index}/_doc/{id} | ✅ PASS | 200 | 200 | |
| match_all size=0 | ✅ PASS | 200 | 200 | |
| match_all size=10 | ✅ PASS | 200 | 200 | |
| term query | ❌ FAIL | 200 | 200 | — check failed |
| match query | ❌ FAIL | 200 | 200 | — check failed |
| range query | ❌ FAIL | 200 | 200 | — check failed |
| bool query | ✅ PASS | 200 | 200 | |
| exists query | ✅ PASS | 200 | 200 | |
| ids query | ✅ PASS | 200 | 200 | |
| sort by count | ✅ PASS | 200 | 200 | |
| _source filtering | ✅ PASS | 200 | 200 | |
| terms agg | ✅ PASS | 200 | 200 | |
| stats agg | ✅ PASS | 200 | 200 | |
| avg agg | ✅ PASS | 200 | 200 | |
| min/max agg | ✅ PASS | 200 | 200 | |
| value_count agg | ✅ PASS | 200 | 200 | |
| histogram agg | ✅ PASS | 200 | 200 | |
| POST /_bulk | ❌ FAIL | 200 | 400 | — status: xerj=200 es=400 |
| POST /_delete_by_query | ✅ PASS | 200 | 200 | |
| POST /_aliases add | ✅ PASS | 200 | 200 | |
| GET /test_alias/_count | ✅ PASS | 200 | 200 |
Failures
- term query: xerj=200 es=200 — check failed
- match query: xerj=200 es=200 — check failed
- range query: xerj=200 es=200 — check failed
- POST /_bulk: xerj=200 es=400 — status: xerj=200 es=400
Log
[23:26:13] === ES API Compatibility Test Suite ===
[23:26:13] Date: 2026-04-15T23:26:13.317769
[23:26:13] xerj: localhost:9800
[23:26:13] ES: 127.0.0.1:9300
[23:26:13]
[23:26:13] --- Cluster APIs ---
[23:26:13] PASS: GET /
[23:26:13] PASS: GET /_cluster/health
[23:26:13] PASS: GET /_cat/indices
[23:26:13] --- Index Management ---
[23:26:13] PASS: PUT index with mapping
[23:26:13] PASS: GET /{index}
[23:26:13] PASS: GET /{index}/_mapping
[23:26:13] PASS: GET /{index}/_settings
[23:26:13] --- Document CRUD ---
[23:26:13] Seeded 100 docs to xerj: 200
[23:26:13] Seeded 100 docs to ES: 200
[23:26:14] Refreshed xerj: 200
[23:26:14] Refreshed ES: 200
[23:26:14] PASS: GET /_count
[23:26:14] PASS: GET /{index}/_doc/{id}
[23:26:14] PASS: PUT /{index}/_doc/{id}
[23:26:14] PASS: DELETE /{index}/_doc/{id}
[23:26:14] --- Search ---
[23:26:14] PASS: match_all size=0
[23:26:14] PASS: match_all size=10
[23:26:14] FAIL: term query — check failed
[23:26:14] FAIL: match query — check failed
[23:26:14] FAIL: range query — check failed
[23:26:14] PASS: bool query
[23:26:14] PASS: exists query
[23:26:14] PASS: ids query
[23:26:14] PASS: sort by count
[23:26:14] PASS: _source filtering
[23:26:14] --- Aggregations ---
[23:26:14] PASS: terms agg
[23:26:14] PASS: stats agg
[23:26:14] PASS: avg agg
[23:26:14] PASS: min/max agg
[23:26:14] PASS: value_count agg
[23:26:14] PASS: histogram agg
[23:26:14] --- Bulk API ---
[23:26:14] FAIL: POST /_bulk — status: xerj=200 es=400
[23:26:14] --- Delete by query ---
[23:26:15] PASS: POST /_delete_by_query
[23:26:15] --- Aliases ---
[23:26:15] PASS: POST /_aliases add
[23:26:15] PASS: GET /test_alias/_count