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
fmt(autoindex): rustfmt the native_candidates test vectors (CI Format + Clippy)
xerj-org776dc3365a45
diff --git a/engine/crates/xerj-autoindex/src/gain.rs b/engine/crates/xerj-autoindex/src/gain.rsindex 7ab1fd632..c84c8ee15 100644--- a/engine/crates/xerj-autoindex/src/gain.rs+++ b/engine/crates/xerj-autoindex/src/gain.rs@@ -346,14 +346,20 @@ mod tests {// and probed before the ES-port+1 guess.assert_eq!(native_candidates("http://localhost:9200"),- vec!["http://localhost:8080".to_string(), "http://localhost:9201".to_string()]+ vec![+ "http://localhost:8080".to_string(),+ "http://localhost:9201".to_string()+ ]);// A node whose ES listener is itself on 8080 still gets both the// default native port and its +1 guess — only an exact duplicate// (ES port+1 == 8080) is deduplicated.assert_eq!(native_candidates("http://localhost:8080"),- vec!["http://localhost:8080".to_string(), "http://localhost:8081".to_string()]+ vec![+ "http://localhost:8080".to_string(),+ "http://localhost:8081".to_string()+ ]);assert_eq!(native_candidates("http://10.0.0.5:8079"),