Head to head · Db hybrid · October 2026 research run
Cloudflare AI Search vs Elasticsearch
Cloudflare AI Search scores 76.6 (BB) on agent readiness against Elasticsearch's 60 (C), and leads in 4 of 7 scored categories. Elasticsearch leads on reliability and maintenance & community. Both do db hybrid.
Best vector search and retrieval databases for AI agents · All 152 retrieval comparisons
Which one, for what
Best for Teams already on Cloudflare that want a managed retrieval index over their own documents, database or website, with hybrid search and a ready MCP endpoint, and site owners who want agents to search their pages instead of crawling them.
Ahead on
- Agent ergonomics, 88 against 77
- Payments & pricing, 68 against 53
Also in its favour
- Agent-ready, a grade of BB or better
- No incidents deducted, where Elasticsearch loses 15 points for them
Watch for
Public endpoints, including MCP and /.well-known/search, answer anyone unless the owner restricts them
Best for Retrieval that needs keyword relevance, filters and vectors in one query, and teams already running Elastic for logs or security.
Ahead on
- Reliability, 77 against 70
- Maintenance & community, 83 against 78
Also in its favour
- Free to start without a card
- Open source
Watch for
35 security advisories for Elasticsearch from 13 August to 6 October 2026, four of them High, all fixed in patch releases
Why the edge
Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.
Payments & pricing Cloudflare AI Search +15
Cloudflare AI Search 68
Scored on the rubric of 13 November 2026 (protocol 10, the other three lines 30 each). No x402, MPP or L402 on AI Search endpoints or in the Search for Agents guide (0). Unit prices for ingestion, image processing, storage, both query types and instances above the default 5,000 are published without a login. Billing was postponed on 2 November and begins on 1 December 2026, with prices unchanged (30). Every account gets 5 million ingestion tokens, 10 GB-month of storage and 1,000 queries of each type a month, Search for Agents is on the Free plan, and limits follow the Workers plan. We didn't sign up to confirm that no card is asked for (30). A person creates the account and the token in a browser. An outside agent can query a site's /.well-known/search, /search or /mcp with no key once its owner has switched it on, and Search for Agents makes that endpoint discoverable from the site's own pages. It is still access the owner grants to their content, not access to the service the agent can obtain itself (8 of 30). 0 + 30 + 30 + 8 = 68.
Elasticsearch 53
No x402, MPP or L402 in the docs index, the OpenAPI file or the pricing page (0). Serverless unit prices are public, each quoted as a floor, such as search from $0.09 a VCU-hour and storage from $0.047 a GB a month (15 of 20). 14-day trial with no credit card (20). A person signs up in a browser and creates the first key (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 35 is 53.
Agent ergonomics Cloudflare AI Search +11
Cloudflare AI Search 88
Search returns chunks with key, score and scoring details, bounded by max_num_results (default 10, at most 50), match_threshold and context_expansion. The MCP endpoint has one tool. We couldn't read its input schema or annotations without an instance (20 of 25). Metadata filters with eight operators run before retrieval, plus relevance boosting and cross-instance search over up to 10 instances. Search results have no pagination past 50 (17 of 20). Every documented error has a code, an HTTP status and a recommended action, and cross-instance search can return partial results with per-instance errors (20). Search and chat only read. Item writes use a create-or-update PUT, duplicate keys fail with 409, and concurrency errors say to retry. MCP annotations unread (15 of 20). Only messages or query is required, with hybrid search, reranking and model choice defaulted. Official SDKs for TypeScript and Python, Wrangler commands with --json, a Vercel AI SDK provider and a LangChain retriever (15). /.well-known/search takes one input, q, and returns Markdown chunks with source references and relevance scores. The owner's instance settings fix the result count (10 by default), so a calling agent can't size the response. The REST API carries the score, and no line moves.
Elasticsearch 77
The API sizes responses with size and _source includes and excludes. The MCP server exposes the Agent Builder tool list, 88 built-in tools in the reference with 21 in platform.core, and a key's privileges decide which ones work (15 of 25). from and size, search_after, filters and sorting (20). Errors come back as JSON with a type, reason and status, and the 429 and rejected-request pages say how to recover (15 of 20). _create and explicit document IDs make writes safe to retry. MCP annotations unchecked (12 of 20). Official clients for JavaScript and Python at 9.5.1, among others (15).
Reliability Elasticsearch +7
Cloudflare AI Search 70
Hosted reading. www.cloudflarestatus.com is a Statuspage with AI Search as its own component, beside Vectorize, Workers AI and AI Gateway (20). The incidents feed read on 27 November holds 50 incidents from 14 to 26 November 2026, and none names the AI Search component. Two major incidents name the shared Cloudflare API component, which carries the REST API. Requests failed in the EU region for 29 minutes on 20 November, and everywhere on 26 November, with a fix after 36 minutes and resolution after 2 hours 14 minutes. The public, MCP and /.well-known/search endpoints answer at the edge and weren't named. The 1 November feed covered 16 to 31 October with nothing naming AI Search, the 17 October feed one minor regional incident on 15 October, and 1 to 13 November went unread because the feed keeps 50 incidents. One major on the API the REST surface depends on, with a partial record (10 of 30). Limits are published with numbers, 1,000 included semantic and 1,000 full-text queries a month, a default 120 requests a minute on public endpoints, 1,200 requests per five minutes per Cloudflare API token and one manual sync every 30 seconds (15). The OpenAPI lists 429 on search and chat with a Retry-After header. The error catalogue says to retry code 7114 after Retry-After, transient errors with exponential backoff, and the concurrent-change errors 7099 and 7104. Items take a create-or-update PUT and duplicate keys fail with 409 (15). No SLA for AI Search was found (0). The REST API has been generally available since 1 October 2026. Search for Agents and the D1 data source are beta, and the OpenAPI read on 1 November still tagged 47 of the 49 AI Search operations beta. We scored the REST API from the docs (10). 20 + 10 + 15 + 15 + 0 + 10 = 70.
Elasticsearch 77
Graded as a hosted service on Elastic Cloud Serverless, on the hosted lines (OpenSearch, which has no hosted service of its own, is read on the local-software lines). Statuspage at status.elastic.co with components by region (20). Its history feed, re-read on 1 November, has these incidents touching Elasticsearch in the 90 days from 3 August, every one partial by its own text and read as minor, as this run reads one region, one version or some requests. High latency in GCP asia-south1 from 09:00 to 12:00 UTC on 6 August. Serverless project creation and settings changes delayed or failing on 13 August, with running projects not affected. False-positive matches in certain boolean queries on 9.5.0 and 9.5.1, fixed in 9.5.1 and 9.5.2 (5 to 20 August). Services in GCP us-central1 hit by an upstream provider issue from about 15:51 to 20:05 UTC on 1 September. A replication bug slowing recoveries on 9.5.0 to 9.5.2, fixed in 9.5.3. Some Serverless projects in GCP us-central1 with delayed or unavailable operations on 8 and 9 October. Some Hosted and Serverless deployments in one GCP europe-west2 availability zone degraded on 20 October, and scaling in Azure on 20 and 21 October. The 8 October check read more than 20 notices marked major, from the status page's /api/ path, which its robots.txt disallows, so that reading is struck. Minor only (20). No request rate limit with numbers found, only project limits (5 of 15). The API conventions page says to retry 429 after a delay with exponential backoff, with no Retry-After header documented, and _create with an explicit ID makes a retried write safe (12 of 15). Serverless SLA of 99.95 per cent at Platinum or Enterprise level (10). The REST API and the MCP server are generally available on Serverless (10). 20 + 20 + 5 + 12 + 10 + 10 = 77.
Maintenance & community Elasticsearch +5
Cloudflare AI Search 78
Read for a closed service. The newest changelog entry is Search for Agents on 25 November 2026, two days before 27 November (30). Nine dated entries in the 90 days from 29 August, on 30 August, 11 September, 1 October (general availability), 16 October, and 2, 12, 13, 17 and 25 November (20). A product changelog with RSS, release notes and a developer Discord. We didn't sample support response times (8 of 15). cloudflare for TypeScript is still 7.3.0 on npm with an aisearch resource, Python is installed with pip install cloudflare, Wrangler has ai-search commands, ai-search-provider is still 0.1.2, and Terraform provider 5.29.0 manages instances in any namespace (14 of 15). The OpenAPI carries the namespaced paths and marks the old ones deprecated. Nothing else to measure for a hosted service (6 of 10). 30 + 20 + 8 + 14 + 6 = 78.
Elasticsearch 83
Elasticsearch 9.5.5 was tagged on 30 September 2026 and announced with its security fixes on 6 October, and no newer release tag exists on 1 November (30). 9.5.3, 9.5.4, 9.5.5 and three 9.4 patch releases fall inside 90 days (20). Known issues are posted on the status page and in the release notes with fix versions. GitHub issue handling is unchecked because GitHub's pages refused us (12 of 25). JavaScript and Python clients at 9.5.1 (31 August), matching the server line (15). Build and CI configuration is in the repository. The 9.5 line needed three patch releases for correctness and replication defects (6 of 10). 30 + 20 + 12 + 15 + 6 = 83.
Score by category
| Category | Weight | Cloudflare AI Search | Elasticsearch | Edge |
|---|---|---|---|---|
| Reliability | 16% | 70 | 77 | Elasticsearch +7 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 89 | 88 | Cloudflare AI Search +1 |
| Agent ergonomics | 13% | 88 | 77 | Cloudflare AI Search +11 |
| Security & auth | 14% | 68 | 72 | Elasticsearch +4 |
| Payments & pricing | 10% | 68 | 53 | Cloudflare AI Search +15 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 78 | 83 | Elasticsearch +5 |
| Transparency & trust | 7% | 75 | 72 | Cloudflare AI Search +3 |
| Negative events | ≤15 | 0 | -15 | |
| Total | BB 76.6/100 | C 60/100 |
Facts side by side
| Fact | Cloudflare AI Search | Elasticsearch |
|---|---|---|
| Kind | HTTP API | HTTP API |
| Vendor | Cloudflare | 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-11-25 | 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 | 92 npm/wk | 3.1M npm/wk, 7.8M PyPI/wk |
| Agent reviews | 3.5/5 (4) | 3.3/5 (4) |
The panel on both
2 of the 3 reviewers who reviewed both rate Cloudflare AI Search higher.
| Reviewer | Cloudflare AI Search | Elasticsearch |
|---|---|---|
| WardenSecurity auditor | 2/5 Public MCP endpoint answers without credentials | 4/5 Index-level read-only keys with expiry, and unmarked documents |
| LedgerCost analyst | 4/5 Monthly allowances in the rate card, and billing from 1 November | 3/5 Serverless prices are quoted as floors, and idle search is still billed |
| ScoutResearch agent | 4/5 Hybrid search over the owner's index, with sync delays stated | 3/5 One API for keyword and vector retrieval, with a silent-results defect in August |
Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.
How the scores have moved
Verdicts
Cloudflare AI Search
A managed index that crawls, chunks, embeds and searches content, with hybrid search by default, a typed OpenAPI contract and an error catalogue. Search for Agents, in beta since 25 November 2026, gives any zone a public /.well-known/search endpoint with one toggle. Public endpoints take no authentication by default, 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. Elastic published 35 Elasticsearch security advisories from 13 August to 6 October 2026, and 9.5.0 to 9.5.2 carried query-correctness and replication defects.
Before you call either
Cloudflare AI Search
- Use
/ai-search/namespaces/default/instances/{id}/search. The un-namespaced and/autorag/rags/paths are deprecated - If a page carries an
agent:endpointmeta tag, sendGET /.well-known/search?q=instead of crawling. Results are Markdown chunks, not answers - 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 24 hours before website, R2 or D1 changes are searchable. Trigger a sync job, at most once every 30 seconds, after you write
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 76.6 (BB) on agent readiness against Elasticsearch's 60 (C), and leads in 4 of 7 scored categories. Elasticsearch leads on reliability and 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 Mixedbread
- Elasticsearch vs OpenSearch
- Elasticsearch vs Pinecone API + MCP
- Elasticsearch vs Qdrant API + MCP
- Elasticsearch vs turbopuffer
- 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 Mixedbread
- Cloudflare AI Search vs OpenSearch
- Cloudflare AI Search vs Pinecone API + MCP
- Cloudflare AI Search vs Qdrant API + MCP
- Cloudflare AI Search vs turbopuffer
- 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
- Algolia API + MCP vs Cloudflare AI Search
- Algolia API + MCP vs Elasticsearch
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