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
---
"Missing index date math with catch":
- do:
catch: /logstash-\d{4}\.\d{2}\.\d{2}/
search:
rest_total_hits_as_int: true
index: <logstash-{now/M}>
---
"Missing index":
- do:
catch: missing
search:
rest_total_hits_as_int: true
index: missing_index
- do:
search:
rest_total_hits_as_int: true
index: missing_index
ignore_unavailable: true
- match: {hits.total: 0}
---
"Closed index":
- skip:
features: ["allowed_warnings"]
- do:
indices.create:
index: index_closed
- do:
indices.close:
index: index_closed
- do:
catch: /index_closed_exception/
search:
rest_total_hits_as_int: true
index: index_closed
- do:
search:
rest_total_hits_as_int: true
index: index_closed
ignore_unavailable: true
- match: {hits.total: 0}
- do:
search:
rest_total_hits_as_int: true
index: index*
- match: {hits.total: 0}
- do:
catch: missing
search:
rest_total_hits_as_int: true
index: index*
allow_no_indices: false
- do:
catch: /index_closed_exception/
search:
rest_total_hits_as_int: true
index: index*
expand_wildcards: ["open","closed"]