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
fix(autoindex): document the bulk size maximum in help (#1746)
Lenin Mookiah10e12b0030b1
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 143bec78e..4b4544163 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -17,6 +17,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0on 16 to rank 1 on 91, with symbol lookups unchanged([harness](benchmarks/search-exact-phrase/README.md)).+- `xerj autoindex --help` now states the existing `--bulk-mb` maximum of 24.+## [1.0.0-rc.97] - 2026-10-17<!-- TODO(release manager): set the date above to the tag date. -->diff --git a/engine/crates/xerj-autoindex/src/cli.rs b/engine/crates/xerj-autoindex/src/cli.rsindex cd445f2f8..b4a85f7e4 100644--- a/engine/crates/xerj-autoindex/src/cli.rs+++ b/engine/crates/xerj-autoindex/src/cli.rs@@ -279,7 +279,7 @@ pub fn help_text_with(feedback: bool) -> String {\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the default reduced further on a machine with little\n\\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20free memory)\n\\x20\x20\x20\x20--pdf-timeout-secs <N> per-PDF parser timeout (default 120; max 3600)\n\- \x20\x20\x20\x20--bulk-mb <N> bulk cut size in MB (default 8)\n\+ \x20\x20\x20\x20--bulk-mb <N> bulk cut size in MB (default 8, max {max_bulk_mb})\n\\x20\x20\x20\x20--bulk-timeout-secs <N>\n\\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bulk HTTP request timeout in seconds (default 300;\n\\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20valid range 1..=3600)\n\@@ -678,6 +678,7 @@ pub fn help_text_with(feedback: bool) -> String {default_budget = crate::objwatch::cost::DEFAULT_MAX_MONTHLY_CLASS_A,default_gets = crate::objwatch::cost::DEFAULT_MAX_MONTHLY_CLASS_B,max_poll = MAX_POLL_INTERVAL_SECS,+ max_bulk_mb = MAX_BULK_MB,fresh_help = FRESH_HELP,resume_policy_help = RESUME_POLICY_HELP,defaults = crate::ignore_rules::DEFAULT_IGNORE_PATTERNS.join(" ")@@ -2244,6 +2245,25 @@ mod tests {assert_eq!(index(&["data", "--bulk-mb", "24"]).bulk_mb, 24);}+ #[test]+ fn bulk_help_documents_the_enforced_maximum() {+ for feedback in [false, true] {+ let help = super::help_text_with(feedback);+ let line = help+ .lines()+ .find(|line| line.starts_with(" --bulk-mb <N>"))+ .expect("--bulk-mb must be documented");+ assert!(+ line.contains(&format!("(default 8, max {})", super::MAX_BULK_MB)),+ "{line}"+ );+ }+ assert!(+ err(&["data", "--bulk-mb", &(super::MAX_BULK_MB + 1).to_string()])+ .contains("--bulk-mb")+ );+ }+#[test]fn bulk_timeout_defaults_to_300_seconds() {assert_eq!(index(&["data"]).bulk_timeout_secs, 300);