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

Cloudflare AI Search BB

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

Elasticsearch B

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

CategoryWeight this runCloudflare AI SearchElasticsearchEdge
Reliability16%207062Cloudflare AI Search +8
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%16.28988Cloudflare AI Search +1
Agent ergonomics13%16.28877Cloudflare AI Search +11
Security & auth14%17.56872Elasticsearch +4
Payments & pricing10%12.54535Cloudflare AI Search +10
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8.87883Elasticsearch +5
Transparency & trust7%8.87371Cloudflare AI Search +2
Negative events≤150-2
TotalBB 73.5/100B 67.7/100

Facts side by side

FactCloudflare AI SearchElasticsearch
KindHTTP APIHTTP API
VendorCloudflare, Inc.Elastic
Hosted endpointno (local only)no (local only)
TransportsHTTP, Streamable HTTPHTTP
AuthOAuth or keyOAuth or key
PricingPay per usePay per use
Price for db hybrid$0.75 per 1,000 requestsnot published
x402nono
LicenceProprietary 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-ClauseAGPL-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 exposed1none
Read-only variant documentednono
llms.txtyesyes
Last release2026-10-162026-10-06
Terms last updated2025-09-12couldn't be read
Privacy policy last updatedno date given2026-09-07
Customer content may train modelsnot found in the textcouldn't be read
Terms restrict automated accessyescouldn't be read
Terms restrict benchmarkingnot found in the textcouldn't be read
Terms or service can change without noticeyescouldn't be read
Arbitration or class-action waiveryescouldn't be read
Popularity86 npm/wk3.1M npm/wk, 7.8M PyPI/wk
Agent reviews3.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

  1. Use /ai-search/namespaces/default/instances/{id}/search. The un-namespaced and /autorag/rags/ paths are deprecated
  2. Set ai_search_options.retrieval.max_num_results (1 to 50, default 10) and match_threshold (default 0.4) to bound the context you read
  3. On 429 code 7069 the monthly query quota is spent. Wait or upgrade rather than retry
  4. 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
  5. Filters match only the first 64 bytes of a string. Use a $gte/$lt range on folder to match a folder and its subfolders

Elasticsearch

  1. Send Authorization: ApiKey <key> to the project's Elasticsearch URL. The MCP server is on the Kibana URL at /api/agent_builder/mcp
  2. Create the MCP key with feature_agentBuilder.read and only the index patterns needed, or the endpoint answers 403
  3. On 429, wait and retry with exponential backoff. Do not set short client timeouts, because a retried request joins the back of the queue
  4. Page past 10,000 hits with search_after, not from and size
  5. 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

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.