Skip to content

armgit / xerj

Public Imported from GitHub
0

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.

polish(rustdoc): correct the HEALTH frame in the binary-protocol example (#1556)

xerj-org869d5645f64f
diff --git a/engine/crates/xerj-api/src/binary_protocol.rs b/engine/crates/xerj-api/src/binary_protocol.rs
index 32b7d280a..a0da45ef6 100644
--- a/engine/crates/xerj-api/src/binary_protocol.rs
+++ b/engine/crates/xerj-api/src/binary_protocol.rs
@@ -32,8 +32,9 @@
//! # Example session
//!
//! ```text
-//! client → [0x0E 0x00 0x00 0x00] [0x06] {} (HEALTH, 14-byte payload)
-//! server → [0x31 0x00 0x00 0x00] [0x40] {"status":"green"} (RESP_OK)
+//! client → [0x02 0x00 0x00 0x00] [0x06] {} (HEALTH, 2-byte payload)
+//! server → [0x31 0x00 0x00 0x00] [0x40] {"status":"green","num_indices":0,"total_docs":0}
+//! (RESP_OK, 49-byte payload)
//! ```
use std::sync::Arc;