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
---
setup:
- do:
indices.create:
index: test
body:
settings:
index.max_result_window: 2
mappings:
properties:
key:
type: keyword
- do:
index:
index: test
refresh: true
id: "1"
body: { "key" : "value" }
---
"id query works within max result window":
- do: { search: { body: { query: { ids: { values: [1, 2] } }, size: 2 } } }
- length: { hits.hits: 1 }
---
"id query returns error above max result window":
- requires:
cluster_features: ["ids_query_limit_max_ids"]
reason: "Ensure a limited number if ids can be supplied to ids query"
- do:
catch: bad_request
search:
body:
query:
ids:
values: [1, 2, 3]
- match: { status: 400 }
- match: { error.root_cause.0.type: "query_shard_exception" }
- match: { error.root_cause.0.reason: "failed to create query: Too many ids specified, allowed max result window is [2]" }