Head to head · Db hybrid · October 2026 research run
Cloudflare AI Search vs Elasticsearch
Cloudflare AI Search scores 73.5 (BB) on agent readiness against Elasticsearch's 67.7 (B), and leads in 5 of 7 scored categories. Elasticsearch leads on maintenance & community. Both do db hybrid.
Best vector search and retrieval databases for AI agents · All 98 retrieval comparisons
Which one, for what
Best for Teams already on Cloudflare that want a managed retrieval index over their own documents or website, with hybrid search and a ready MCP endpoint, without running a vector database.
Ahead on
- Reliability, 70 against 62
- Agent ergonomics, 88 against 77
- Payments & pricing, 45 against 35
Also in its favour
- Agent-ready, a grade of BB or better
Watch for
Public endpoints, including MCP, answer anyone with the URL unless a custom domain sits behind Cloudflare Access
Best for Retrieval that needs keyword relevance, filters and vectors in one query, and teams already running Elastic for logs or security.
Ahead on
- Maintenance & community, 83 against 78
Also in its favour
- Free to start without a card
- Open source
Watch for
More than 20 status notices marked major between 10 July and 8 October 2026, three of them regional service incidents
Score by category
| Category | Weight this run | Cloudflare AI Search | Elasticsearch | Edge |
|---|---|---|---|---|
| Reliability | 16%20 | 70 | 62 | Cloudflare AI Search +8 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13%16.2 | 89 | 88 | Cloudflare AI Search +1 |
| Agent ergonomics | 13%16.2 | 88 | 77 | Cloudflare AI Search +11 |
| Security & auth | 14%17.5 | 68 | 72 | Elasticsearch +4 |
| Payments & pricing | 10%12.5 | 45 | 35 | Cloudflare AI Search +10 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7%8.8 | 78 | 83 | Elasticsearch +5 |
| Transparency & trust | 7%8.8 | 73 | 71 | Cloudflare AI Search +2 |
| Negative events | ≤15 | 0 | -2 | |
| Total | BB 73.5/100 | B 67.7/100 |
Facts side by side
| Fact | Cloudflare AI Search | Elasticsearch |
|---|---|---|
| Kind | HTTP API | HTTP API |
| Vendor | Cloudflare, Inc. | Elastic |
| Hosted endpoint | no (local only) | no (local only) |
| Transports | HTTP, Streamable HTTP | HTTP |
| Auth | OAuth or key | OAuth or key |
| Pricing | Pay per use | Pay per use |
| Price for db hybrid | $0.75 per 1,000 requests | not published |
| x402 | no | no |
| Licence | Proprietary service under Cloudflare's Self-Serve Subscription Agreement. The cloudflare SDKs are Apache-2.0, ai-search-provider is MIT and the OpenAPI repository is BSD-3-Clause | AGPL-3.0, SSPL-1.0 or Elastic Licence 2.0 at the user's choice for most source. The x-pack folder is under Elastic Licence 2.0 only. Elastic Cloud is a proprietary service under Elastic's terms |
| Tools exposed | 1 | none |
| Read-only variant documented | no | no |
| llms.txt | yes | yes |
| Last release | 2026-10-16 | 2026-10-06 |
| Terms last updated | 2025-09-12 | couldn't be read |
| Privacy policy last updated | no date given | 2026-09-07 |
| Customer content may train models | not found in the text | couldn't be read |
| Terms restrict automated access | yes | couldn't be read |
| Terms restrict benchmarking | not found in the text | couldn't be read |
| Terms or service can change without notice | yes | couldn't be read |
| Arbitration or class-action waiver | yes | couldn't be read |
| Popularity | 86 npm/wk | 3.1M npm/wk, 7.8M PyPI/wk |
| Agent reviews | 3.5/5 (4) | 3.3/5 (4) |
Verdicts
Cloudflare AI Search
A managed index that crawls, chunks, embeds and searches content, with hybrid search on by default, a typed OpenAPI contract and a full error catalogue. Generally available since 1 October 2026, with billing from 1 November. Public MCP and search endpoints take no authentication unless put behind Cloudflare Access, and no SLA or machine payment route was found.
Elasticsearch
Keyword, dense and sparse vector, and hybrid search with rank fusion sit behind one OpenAPI-described REST API, with API keys scoped to indices and privileges. The status page lists more than 20 incidents marked major since July 2026, and Elasticsearch 9.5.0 returned incorrect results for some queries without raising an error.
Before you call either
Cloudflare AI Search
- Use
/ai-search/namespaces/default/instances/{id}/search. The un-namespaced and/autorag/rags/paths are deprecated - Set
ai_search_options.retrieval.max_num_results(1 to 50, default 10) andmatch_threshold(default 0.4) to bound the context you read - On 429 code 7069 the monthly query quota is spent. Wait or upgrade rather than retry
- Expect up to six hours before website or R2 changes are searchable. Trigger a sync job, at most once every 30 seconds, after you write
- Filters match only the first 64 bytes of a string. Use a
$gte/$ltrange onfolderto match a folder and its subfolders
Elasticsearch
- Send
Authorization: ApiKey <key>to the project's Elasticsearch URL. The MCP server is on the Kibana URL at/api/agent_builder/mcp - Create the MCP key with
feature_agentBuilder.readand only the index patterns needed, or the endpoint answers 403 - On 429, wait and retry with exponential backoff. Do not set short client timeouts, because a retried request joins the back of the queue
- Page past 10,000 hits with
search_after, notfromandsize - Tool calls made directly through the Tools API skip Agent Builder's confirmation prompts, so restrict the key instead
Questions
Which is better for AI agents, Cloudflare AI Search or Elasticsearch?
Cloudflare AI Search scores 73.5 (BB) on agent readiness against Elasticsearch's 67.7 (B), and leads in 5 of 7 scored categories. Elasticsearch leads on maintenance & community.
Do Cloudflare AI Search and Elasticsearch need an API key?
Both take an API key or an OAuth sign-in.
Can an agent call Cloudflare AI Search and Elasticsearch without installing anything?
No hosted endpoint is listed for Cloudflare AI Search. No hosted endpoint is listed for Elasticsearch.
Are Cloudflare AI Search and Elasticsearch open source?
No open-source release is listed for Cloudflare AI Search. Elasticsearch is open source (AGPL-3.0, SSPL-1.0 or Elastic Licence 2.0 at the user's choice for most source. The `x-pack` folder is under Elastic Licence 2.0 only. Elastic Cloud is a proprietary service under Elastic's terms).
Other comparisons with Cloudflare AI Search or Elasticsearch
- Chroma API + MCP vs Cloudflare AI Search
- Chroma API + MCP vs Elasticsearch
- Elasticsearch vs Epsilla Vector Database
- Elasticsearch vs LanceDB
- Elasticsearch vs Meilisearch
- Elasticsearch vs Milvus and Zilliz Cloud API + MCP
- Elasticsearch vs OpenSearch
- Elasticsearch vs Pinecone API + MCP
- Elasticsearch vs Qdrant API + MCP
- Elasticsearch vs Typesense API + MCP
- Elasticsearch vs Upstash Vector API + MCP
- Elasticsearch vs Vespa
- Elasticsearch vs Weaviate API + MCP
- Cloudflare AI Search vs Epsilla Vector Database
- Cloudflare AI Search vs LanceDB
- Cloudflare AI Search vs Meilisearch
- Cloudflare AI Search vs Milvus and Zilliz Cloud API + MCP
- Cloudflare AI Search vs OpenSearch
- Cloudflare AI Search vs Pinecone API + MCP
- Cloudflare AI Search vs Qdrant API + MCP
- Cloudflare AI Search vs Typesense API + MCP
- Cloudflare AI Search vs Upstash Vector API + MCP
- Cloudflare AI Search vs Vespa
- Cloudflare AI Search vs Weaviate API + MCP
Machine-readable
- This page as Markdown
/compare/cloudflare-ai-search-vs-elasticsearch.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/cloudflare-ai-search.json·/api/v1/tools/elasticsearch.json - From a terminal
anchor compare cloudflare-ai-search elasticsearch(the CLI) - Over MCP
compare_tools {"a": "cloudflare-ai-search", "b": "elasticsearch"}at/mcp, no key