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
test(catalog): assert the boost the code actually emits
Leonid Bugaev9ff4ad9ec0b5
diff --git a/engine/crates/xerj-autoindex/src/catalog.rs b/engine/crates/xerj-autoindex/src/catalog.rsindex 6b465e1e6..927af2ba6 100644--- a/engine/crates/xerj-autoindex/src/catalog.rs+++ b/engine/crates/xerj-autoindex/src/catalog.rs@@ -747,7 +747,9 @@ mod sample_query_tests {should[1]["match_phrase"]["defs"]["query"],should[0]["multi_match"]["query"]);- assert_eq!(should[1]["match_phrase"]["defs"]["boost"], json!(8));+ // 4, not 8: measured identical to ^8 on the sealed holdout, better on+ // the smaller corpus, and it amplifies the single-word case least.+ assert_eq!(should[1]["match_phrase"]["defs"]["boost"], json!(4));assert_eq!(full_text["body"]["_source"], json!(["ax_path", "title"]));assert_eq!(full_text["body"]["fields"], json!(["_passage"]));}