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
fix(es-compat): add POST /{index}/_doc/{id} route (RC4-W2 A4)
xerj-org3531a4aae665
diff --git a/engine/crates/xerj-api/src/router.rs b/engine/crates/xerj-api/src/router.rsindex c4dabb8a3..39f5775b5 100644--- a/engine/crates/xerj-api/src/router.rs+++ b/engine/crates/xerj-api/src/router.rs@@ -255,9 +255,12 @@ pub fn build_es_compat_router(state: AppState) -> Router {.route("/_analyze", post(es_compat::analyze_text_global))// ── Document operations ────────────────────────────────────────────.route("/:index/_doc", post(es_compat::index_doc_auto))+ // POST with an explicit id is the same index op as PUT (auto-create+ // included) in ES — it was missing here and returned 405..route("/:index/_doc/:id",put(es_compat::index_doc)+ .post(es_compat::index_doc).get(es_compat::get_doc).delete(es_compat::delete_doc).head(es_compat::head_doc),