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:
- skip:
features: ["allowed_warnings"]
- do:
indices.create:
index: test_index
body:
aliases:
test_alias: {}
test_blias: {}
mappings:
properties:
foo:
type: keyword
settings:
number_of_shards: 1
number_of_replicas: 1
- do:
indices.create:
index: test_index_2
body:
settings:
number_of_shards: 1
number_of_replicas: 2
aliases:
test_alias: {}
test_blias: {}
- do:
indices.create:
index: test_index_3
body:
aliases:
test_alias: {}
test_blias: {}
- do:
indices.close:
index: test_index_3
- do:
cluster.health:
wait_for_status: yellow
---
"Get index infos":
- do:
indices.get:
index: test_index
- is_true: test_index.aliases
- is_true: test_index.settings
- is_true: test_index.mappings
---
"Get index infos should work for wildcards":
- do:
indices.get:
index: test_*
- is_true: test_index.mappings
- is_true: test_index.aliases
- is_true: test_index.settings
- is_true: test_index_2.settings
- is_true: test_index_2.mappings
- is_true: test_index_2.aliases
---
"Get index infos with human settings should return index creation date and version in readable format":
- do:
indices.get:
index: test_index
human: true
- is_true: test_index.settings.index.creation_date_string
- is_true: test_index.settings.index.version.created_string
---
"Get index infos by default shouldn't return index creation date and version in readable format":
- do:
indices.get:
index: test_index
- is_false: test_index.settings.index.creation_date_string
- is_false: test_index.settings.index.version.created_string
---
"Missing index should throw an Error":
- do:
catch: missing
indices.get:
index: test_not_found
---
"Missing index should return empty object if ignore_unavailable":
- do:
indices.get:
index: test_not_found
ignore_unavailable: true
- match: { $body: {} }
---
"Should return empty object if allow_no_indices":
- do:
indices.get:
index: test_not*
- match: { $body: {} }
---
"Should throw error if allow_no_indices=false":
- do:
catch: missing
indices.get:
index: test_not*
allow_no_indices: false
---
"Should return test_index_2 if expand_wildcards=open":
- do:
indices.get:
index: test_index_*
expand_wildcards: open
- is_true: test_index_2.settings
- is_false: test_index_3.settings
---
"Should return test_index_3 if expand_wildcards=closed":
- do:
indices.get:
index: test_index_*
expand_wildcards: closed
- is_false: test_index_2.settings
- is_true: test_index_3.settings
---
"Should return test_index_2 and test_index_3 if expand_wildcards=open,closed":
- do:
indices.get:
index: test_index_*
expand_wildcards: open,closed
- is_true: test_index_2.settings
- is_true: test_index_3.settings
---
"Should return an exception when querying invalid indices":
- do:
catch: bad_request
indices.get:
index: _foo
---
"Should return only selected features":
- requires:
cluster_features: ["gte_v8.1.0"]
reason: "features option added in 8.1.0"
- do:
indices.get:
index: test_index
features: aliases,settings
- is_true: test_index.aliases
- is_true: test_index.settings
- match: { test_index.mappings: {}}