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.

Merge remote-tracking branch 'origin/main' into maint/rebase-1204

xerj-org2fe37a014414
diff --cc CHANGELOG.md
index c361300bc,ce233db87..9309a8e78
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -7,19 -7,12 +7,25 @@@ and this project adheres to [Semantic V
## [Unreleased]
+### Added
+
+- **`xerj autoindex --code-analyzer standard|code`** (issue
+ [#1198](https://github.com/xerj-org/xerj/issues/1198)) — `code` declares the engine's built-in
+ identifier-aware analyzer (standard tokenizer + word-delimiter + lowercase: `snake_case`,
+ `camelCase` and dotted identifiers gain their sub-words, the original token is kept) on newly
+ created datasets that hold at least one source file, so a query that says "connection pool"
+ reaches `get_connection_pool` through BM25. Default `standard` keeps today's election
+ unchanged. With `code` elected the #1059 stemmer defers for that dataset. It rides the #1059
+ create-body path: committed `index_identity` digests do not move and existing indexes keep
+ their analyzer. Measured on SWE-bench Lite file localization: acc@5 +0.11 [+0.03, +0.19] on a
+ pre-registered held-out sample; cost ~15% index size and ~2.4× text-analysis time.
+
+ ## [1.0.0-rc.87] - 2026-10-07
+
+ ### Performance
+
+ - **Phase-B bulk bodies are coalesced across files** (issue [#1147](https://github.com/xerj-org/xerj/issues/1147), PR [#1195](https://github.com/xerj-org/xerj/pull/1195), merged just past the rc.86 tag) — the per-file round-trip ceiling on corpus ingest, measured at ~10⁵ records/node-day on the ghsa-scale mirror class. Each file's records used to ship as their own `_bulk` body, so ingest throughput on a mirror of many single-record files was bounded by per-file round trips, not document volume. The shared bulk pipe now coalesces bodies across files: extraction and sending overlap, up to 8 bodies ride the wire at once (matching the server governor's `max_concurrent_bulks`), a worker about to park ships what is buffered once half the live workers are parked, the all-parked flush stays as the nothing-more-is-coming drain, and submit parks under backpressure when every wire slot is busy. Per-file ordering is preserved (a file's own cut chunks are sent synchronously by its worker). A/B'd on two corpus shapes with no regression — rustsec (1,965 files / 6,829 records): whole run 10.1 s → 9.7 s with phase B at parity; pysec (7,718 mostly-one-record files): 17.4 s → 16.9 s — and the structural win (one send per flush trigger, not one per file) shows at #1147's scale, which the standing corpus rebuild re-measures.
+
### Fixed
- **`xerj corpus index` now proves the store answers a search before it says "searchable"** (issue