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
---
"search with indexed phrases":
- do:
indices.create:
index: test
body:
mappings:
properties:
text:
type: text
index_phrases: true
- do:
index:
index: test
id: "1"
body: { text: "peter piper picked a peck of pickled peppers" }
- do:
indices.refresh:
index: [test]
- do:
search:
rest_total_hits_as_int: true
index: test
body:
query:
match_phrase:
text:
query: "peter piper"
- match: {hits.total: 1}
- do:
search:
rest_total_hits_as_int: true
index: test
q: '"peter piper"~1'
df: text
- match: {hits.total: 1}
- do:
search:
rest_total_hits_as_int: true
index: test
body:
query:
match_phrase:
text: "peter piper picked"
- match: {hits.total: 1}
- do:
search:
rest_total_hits_as_int: true
index: test
body:
query:
match_phrase:
text: "piper"
- match: {hits.total: 1}