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.

style: rustfmt the #451 alias-resolver test files

xerj-org8acf7b73dc6a
diff --git a/engine/crates/xerj-api/tests/mget_through_alias_sees_every_member.rs b/engine/crates/xerj-api/tests/mget_through_alias_sees_every_member.rs
index e40e76717..92350a998 100644
--- a/engine/crates/xerj-api/tests/mget_through_alias_sees_every_member.rs
+++ b/engine/crates/xerj-api/tests/mget_through_alias_sees_every_member.rs
@@ -109,7 +109,10 @@ async fn mget_through_a_multi_index_alias_finds_docs_in_every_member() {
// Both ids exist — one per member. Collapsing the alias to its first member
// makes the other member's doc report found:false (#451 class B).
for (i, want_id) in ["1", "2"].iter().enumerate() {
- let found = docs[i].get("found").and_then(Value::as_bool).unwrap_or(false);
+ let found = docs[i]
+ .get("found")
+ .and_then(Value::as_bool)
+ .unwrap_or(false);
assert!(
found,
"_mget through the alias must find doc {want_id} (it lives in a real member), \