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
# XERJ defaults action.destructive_requires_name to true (ES 8). This file
# opts out so the wildcard-expansion cases below stay the expansion tests
# they were written as. The runner's cleanup puts the setting back to null.
setup:
- do:
cluster.put_settings:
body:
persistent:
action.destructive_requires_name: "false"
flat_settings: true
- do:
indices.create:
index: index
body:
aliases:
alias: {}
- do:
indices.create:
index: index2
---
"Delete index against alias":
- do:
catch: bad_request
indices.delete:
index: alias
- do:
indices.get:
index: index,index2
- is_true: index
- is_true: index2
---
"Delete index against alias - ignore unavailable":
- do:
indices.delete:
index: alias
ignore_unavailable: true
- do:
indices.get:
index: index,index2
- is_true: index
- is_true: index2
---
"Delete index against alias - multiple indices":
- do:
catch: bad_request
indices.delete:
index: alias,index2
- do:
indices.get:
index: index,index2
- is_true: index
- is_true: index2
---
"Delete index against alias - ignore unavailable - multiple indices":
- do:
indices.delete:
index: alias,index2
ignore_unavailable: true
- do:
indices.get:
index: index,index2
ignore_unavailable: true
- is_true: index
- is_false: index2
---
"Delete index against wildcard matching alias":
- do:
indices.delete:
index: alia*
- do:
indices.get:
index: index,index2
- is_true: index
- is_true: index2
---
"Delete index against wildcard matching alias - disallow no indices":
- do:
catch: missing
indices.delete:
index: alia*
allow_no_indices: false
- do:
indices.get:
index: index,index2
- is_true: index
- is_true: index2
---
"Delete index against wildcard matching alias - multiple indices":
- do:
indices.delete:
index: alia*,index2
- do:
indices.get:
index: index,index2
ignore_unavailable: true
- is_true: index
- is_false: index2
---
"Delete index against wildcard matching alias - disallow no indices - multiple indices":
- do:
catch: missing
indices.delete:
index: index2,alia*
allow_no_indices: false
- do:
indices.get:
index: index,index2
- is_true: index
- is_true: index2
---
"Delete nonexistent concrete index":
- do:
catch: missing
indices.delete:
index: nonexistent_index
---
teardown:
- do:
cluster.put_settings:
body:
persistent:
action.destructive_requires_name: null
flat_settings: true