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
---
"One request has pipeline and another not":
- requires:
cluster_features: ["gte_v7.9.1"]
reason: "fixed in 7.9.1"
- do:
bulk:
refresh: true
body:
- '{"index": {"_index": "test_index", "_id": "test_id1"}}'
- '{"f1": "v1", "f2": 42}'
- '{"index": {"_index": "test_index", "_id": "test_id2", "pipeline": "mypipeline"}}'
- '{"f1": "v2", "f2": 47}'
- match: { errors: true }
- match: { items.0.index.result: created }
- match: { items.1.index.status: 400 }
- match: { items.1.index.error.type: illegal_argument_exception }
- match: { items.1.index.error.reason: "pipeline with id [mypipeline] does not exist" }
- do:
count:
index: test_index
- match: {count: 1}
---
"Bulk item runs its ingest pipeline":
- do:
ingest.put_pipeline:
id: "set_pipe"
body:
processors:
- set:
field: "ingested"
value: "yes"
- do:
bulk:
refresh: true
body:
- '{"index": {"_index": "pipe_index", "_id": "no_pipe"}}'
- '{"f1": "plain"}'
- '{"index": {"_index": "pipe_index", "_id": "with_pipe", "pipeline": "set_pipe"}}'
- '{"f1": "piped"}'
- match: { errors: false }
- match: { items.0.index.result: created }
- match: { items.1.index.result: created }
# The pipelined doc gained the injected field.
- do:
get:
index: pipe_index
id: with_pipe
- match: { _source.ingested: "yes" }
# The non-pipelined doc was stored verbatim (no injected field).
- do:
get:
index: pipe_index
id: no_pipe
- match: { _source.f1: "plain" }
- is_false: _source.ingested