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(engine): rustfmt the #1329 fast-agg test fixtures

xerj-org4f41e71f9837
diff --git a/engine/crates/xerj-engine/tests/fast_aggs_exists_and_deletes.rs b/engine/crates/xerj-engine/tests/fast_aggs_exists_and_deletes.rs
index efef7ad44..a5a6e7868 100644
--- a/engine/crates/xerj-engine/tests/fast_aggs_exists_and_deletes.rs
+++ b/engine/crates/xerj-engine/tests/fast_aggs_exists_and_deletes.rs
@@ -117,7 +117,9 @@ async fn exists_in_top_filter_matches_brute() {
let _sequential = ONE_AT_A_TIME.lock().await;
let dir = TempDir::new().unwrap();
let engine = make_engine(&dir);
- engine.create_index("existsq", kw_schema(&["extension", "text"])).unwrap();
+ engine
+ .create_index("existsq", kw_schema(&["extension", "text"]))
+ .unwrap();
let idx = engine.get_index("existsq").unwrap();
seed_exists_shapes(&idx).await;
@@ -160,7 +162,9 @@ async fn exists_on_numeric_field_matches_brute() {
let _sequential = ONE_AT_A_TIME.lock().await;
let dir = TempDir::new().unwrap();
let engine = make_engine(&dir);
- engine.create_index("existsn", kw_schema(&["group"])).unwrap();
+ engine
+ .create_index("existsn", kw_schema(&["group"]))
+ .unwrap();
let idx = engine.get_index("existsn").unwrap();
for i in 0..12_000u32 {
let mut doc = json!({ "group": if i % 2 == 0 { "a" } else { "b" } });
@@ -236,7 +240,9 @@ async fn unmerged_ghosts_still_bail() {
let _sequential = ONE_AT_A_TIME.lock().await;
let dir = TempDir::new().unwrap();
let engine = make_engine(&dir);
- engine.create_index("ghosts", kw_schema(&["group"])).unwrap();
+ engine
+ .create_index("ghosts", kw_schema(&["group"]))
+ .unwrap();
let idx = engine.get_index("ghosts").unwrap();
for i in 0..12_000u32 {
idx.index_document(
@@ -288,7 +294,9 @@ async fn merged_delete_history_re_qualifies_for_fast_path() {
let _sequential = ONE_AT_A_TIME.lock().await;
let dir = TempDir::new().unwrap();
let engine = make_engine(&dir);
- engine.create_index("readmit", kw_schema(&["extension"])).unwrap();
+ engine
+ .create_index("readmit", kw_schema(&["extension"]))
+ .unwrap();
let idx = engine.get_index("readmit").unwrap();
for i in 0..12_000u32 {
idx.index_document(
@@ -385,7 +393,9 @@ async fn object_valued_memtable_doc_counts_as_exists() {
let _sequential = ONE_AT_A_TIME.lock().await;
let dir = TempDir::new().unwrap();
let engine = make_engine(&dir);
- engine.create_index("objmem", kw_schema(&["extension", "text"])).unwrap();
+ engine
+ .create_index("objmem", kw_schema(&["extension", "text"]))
+ .unwrap();
let idx = engine.get_index("objmem").unwrap();
for i in 0..12_000u32 {
idx.index_document(
diff --git a/engine/crates/xerj-engine/tests/verify_window_terms_perf.rs b/engine/crates/xerj-engine/tests/verify_window_terms_perf.rs
index 0516be76b..659d365d8 100644
--- a/engine/crates/xerj-engine/tests/verify_window_terms_perf.rs
+++ b/engine/crates/xerj-engine/tests/verify_window_terms_perf.rs
@@ -150,7 +150,12 @@ async fn count_lane_full_window_is_served_columnar() {
let _sequential = ONE_AT_A_TIME.lock().await;
let dir = TempDir::new().unwrap();
let engine = make_engine(&dir);
- engine.create_index("cves28", kw_schema(&["ax_file", "ax_dataset", "cve_id", "text"])).unwrap();
+ engine
+ .create_index(
+ "cves28",
+ kw_schema(&["ax_file", "ax_dataset", "cve_id", "text"]),
+ )
+ .unwrap();
let idx = engine.get_index("cves28").unwrap();
let digests = seed(&idx).await;
@@ -199,7 +204,12 @@ async fn count_lane_with_resident_ghosts_is_served_and_exact() {
let _sequential = ONE_AT_A_TIME.lock().await;
let dir = TempDir::new().unwrap();
let engine = make_engine(&dir);
- engine.create_index("cves28g", kw_schema(&["ax_file", "ax_dataset", "cve_id", "text"])).unwrap();
+ engine
+ .create_index(
+ "cves28g",
+ kw_schema(&["ax_file", "ax_dataset", "cve_id", "text"]),
+ )
+ .unwrap();
let idx = engine.get_index("cves28g").unwrap();
let digests = seed(&idx).await;
@@ -291,7 +301,9 @@ async fn doc_lane_window_fetch_is_bounded() {
let _sequential = ONE_AT_A_TIME.lock().await;
let dir = TempDir::new().unwrap();
let engine = make_engine(&dir);
- engine.create_index("catalog", kw_schema(&["file_key", "run_id", "ax_path"])).unwrap();
+ engine
+ .create_index("catalog", kw_schema(&["file_key", "run_id", "ax_path"]))
+ .unwrap();
let idx = engine.get_index("catalog").unwrap();
// The catalog holds ONE doc per (digest, alias) — seed the same digests
// plus a run_id that matches everything (the resume-rewrote-everything