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
docs(test): correct the #643 neutrality-guard docstring (#704 review)
xerj-org7139738a599b
diff --git a/engine/crates/xerj-engine/tests/bool_single_clause_is_score_neutral.rs b/engine/crates/xerj-engine/tests/bool_single_clause_is_score_neutral.rsindex 6013517b6..69e26a845 100644--- a/engine/crates/xerj-engine/tests/bool_single_clause_is_score_neutral.rs+++ b/engine/crates/xerj-engine/tests/bool_single_clause_is_score_neutral.rs@@ -359,14 +359,18 @@ async fn must_not_only_bool_is_not_unwrapped() {}}-/// #643 remaining gap: a single-clause `bool` nested inside a score-preserving-/// wrapper that `unwrap_single_clause_bool` does NOT recurse through-/// (`function_score` inner query, `dis_max` single query) keeps the wrapped-/// `bool`, so #399's memtable/segment score divergence can resurface. A-/// no-functions `function_score` and a single-query `dis_max` (tie_breaker 0)-/// are both score-neutral, so each must rank exactly like the bare clause on-/// BOTH populations. Fail-before: the nested `bool` is not erased, so the-/// memtable diverges from the bare clause.+/// #643 remaining gap: before the fix, a single-clause `bool` nested inside a+/// score-preserving wrapper that `unwrap_single_clause_bool` does NOT recurse+/// through (`function_score` inner query, `dis_max` single query) stayed+/// wrapped, so the unwrap did not match Lucene's recursive rewrite for those+/// wrappers. A no-functions `function_score` and a single-query `dis_max`+/// (tie_breaker 0) are both score-neutral, so each must rank exactly like the+/// bare clause on BOTH populations — and empirically they ALREADY do, with or+/// without the fix (the #399 divergence does not manifest for these nested+/// shapes; the wrappers force the doc-scan path regardless). So this is a+/// neutrality REGRESSION GUARD, not a fail-before: the fix's real fail-before is+/// the unit tests `unwrap_recurses_through_*`, which assert the nested `bool` is+/// erased to the bare clause.#[tokio::test]async fn nested_single_clause_bool_in_wrappers_is_score_neutral() {let shapes = [