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 #1487 from mininxd/multi-instances-xerj

xerj-orgec6ef0622f5a
diff --cc engine/crates/xerj-server/src/main.rs
index 412892ec5,307bc819f..dea994539
--- a/engine/crates/xerj-server/src/main.rs
+++ b/engine/crates/xerj-server/src/main.rs
@@@ -173,17 -151,23 +175,23 @@@ wher
while let Some(arg) = args.next() {
match arg.as_str() {
"--config" | "-c" => {
- config = args.next().map(PathBuf::from);
+ config = Some(PathBuf::from(flag_value(&arg, args.next())?));
}
"--data-dir" | "-d" => {
- data_dir = args.next();
+ data_dir = Some(flag_value(&arg, args.next())?);
}
"--bind" | "-b" => {
- bind = args.next();
+ bind = Some(flag_value(&arg, args.next())?);
}
"--port" => {
- port = args.next();
+ port = Some(flag_value(&arg, args.next())?);
}
+ "--auto-port" => {
+ auto_port = Some(true);
+ }
+ "--no-auto-port" => {
+ auto_port = Some(false);
+ }
"--insecure" | "-k" => {
insecure = true;
}