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 pull request #2502 from Term56:fix/batch-search-string-items

xerj-org664219f3df68
diff --cc CHANGELOG.md
index 8967bdc17,6c9e121e2..d39dc54e7
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -154,12 -147,10 +154,16 @@@ continues in #2427 and #1122, which sta
### Fixed
+- `xerj search` names an unknown flag on one line and exits 2 instead of
+ following "unexpected argument" with the whole usage text (#2458). An
+ agent that guessed `--index` and `--max-hits` read the help dump as the
+ answer and gave up on the CLI. Those guesses, and `--size`, `--limit`,
+ `--top`, `--top-k`, `-n` and `-i`, now point at `--prefix <P>` or
+ `-k <N>`.
+ - `xerj_batch_search` (and `xerj batch-search`) accept a plain string in
+ `queries` as shorthand for `{"query": <string>}` (#2497). A string item
+ used to fail alone with "arguments must be a JSON object", so an agent
+ that sent `["a", "b"]` lost a call; the advertised schema now allows it.
- `xerj corpus add` accepts a local Windows path such as
`F:\Projects\Foo` (#2472). The repo name was the text after the last `/`,