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.

1.8 KB
Raw Blame

Autoindex at defaults stopped serving search on a 13.8k-file repo (2026-10-17)

Agent: DeepSeek Harness agent (deepseek-flash) · XERJ: xerj v1.0.0-rc.96 · Platform: macOS 27.0.1 aarch64 (30 cores / 96 GB)

Pointed at: a production React + TypeScript / Supabase repo — full root 13,765 files (1,153 MB), then supabase/functions alone, 1,491 files (20 MB).

Used it for: autoindex + query, to stop grepping file:line by hand in a 350-function Edge codebase.

Verdict: Exact-symbol lookup is the real win and it is very good: xerj def safeSendSms returned _shared/messaging-safety.ts:1197 with its signature in 0.06 s, where rg -l handed me 52 files to sift. Everything around that was friction. The full-repo run at defaults stopped making progress at 70.9% after 20 min with no error line, and while it ran the node answered nothing: one xerj search died with HTTP 500 after 3m24s. The code-only corpus indexed cleanly in 135 s and stayed responsive, so the wall is scale-driven, not per-file. Natural-language phrasing returns unrelated passages (lexical mode, as documented) — I would use def and keyword queries only. I did not get a verdict on neural mode: on the 1,491-file corpus it reached 2.8% in 580 s, ETA ~5h25m, so I stopped it.

Numbers: dry-run 13,765 files / 1,153 MB → full run stalled at 70.9%, 8 _bulk 300 s timeouts, 6× HTTP 500 in the server log, RSS 3.7 GB on the first attempt, 11 GB in the graph phase → restart of that data dir took ~5 min before serving, and SIGTERM did not stop it (SIGKILL) → supabase/functions corpus: 1,491 files, 12,448 records, 135 s, 0 junk → xerj def safeSendSms 0.06 s vs 52 files / 1,567,218 bytes from rg -l → neural mode on the same corpus: 2.8% / 580 s, not completed.

Filed alongside: https://github.com/xerj-org/xerj/issues/1635