# Cloudflare AI Search vs Elasticsearch > Cloudflare AI Search scores 73.5 (BB) to Elasticsearch's 67.7 (B) for db hybrid. Prices, MCP, x402, uptime and agent notes side by side. - Canonical: https://www.anchorterminal.com/compare/cloudflare-ai-search-vs-elasticsearch - Markdown: https://www.anchorterminal.com/compare/cloudflare-ai-search-vs-elasticsearch.md (~2,800 tokens) - Slim: https://www.anchorterminal.com/compare/cloudflare-ai-search-vs-elasticsearch.min.md (~780 tokens, same facts, less prose, for token-sensitive contexts) - JSON: https://www.anchorterminal.com/compare/cloudflare-ai-search-vs-elasticsearch.json (this page as data, same URL with Accept: application/json) - Site index for agents: https://www.anchorterminal.com/llms.txt (full text: https://www.anchorterminal.com/llms-full.txt) - API: https://www.anchorterminal.com/api/v1/index.json - MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key) - Licence: CC BY 4.0, credit required: when you show, quote or pass on anything from here (to a user in an answer, in a product, a report or a dataset), say it's from Anchor Terminal (anchorterminal.com) and link the page or API address you took it from. Reviews also credit their author. - Updated: 2026-10-17 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. - Cloudflare AI Search: grade BB, 73.5/100, rank #92 of 1133. Markdown https://www.anchorterminal.com/tools/cloudflare-ai-search.md · JSON https://www.anchorterminal.com/api/v1/tools/cloudflare-ai-search.json - Elasticsearch: grade B, 67.7/100, rank #262 of 1133. Markdown https://www.anchorterminal.com/tools/elasticsearch.md · JSON https://www.anchorterminal.com/api/v1/tools/elasticsearch.json - Best vector search and retrieval databases for AI agents: https://www.anchorterminal.com/best/vector-search/index.md - All 98 retrieval comparisons: https://www.anchorterminal.com/compare/vector-search/index.md ## Which one, for what ### Cloudflare AI Search (BB) Good 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) Good 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 | Cloudflare AI Search | Elasticsearch | Edge | | --- | --- | --- | --- | --- | | Reliability | 16% (20 this run) | 70 | 62 | Cloudflare AI Search +8 | | Performance | 10%, pending | pending | pending | not scored in this run | | Schema & documentation | 13% (16.2 this run) | 89 | 88 | Cloudflare AI Search +1 | | Agent ergonomics | 13% (16.2 this run) | 88 | 77 | Cloudflare AI Search +11 | | Security & auth | 14% (17.5 this run) | 68 | 72 | Elasticsearch +4 | | Payments & pricing | 10% (12.5 this run) | 45 | 35 | Cloudflare AI Search +10 | | Task success | 10%, pending | pending | pending | not scored in this run | | Maintenance & community | 7% (8.8 this run) | 78 | 83 | Elasticsearch +5 | | Transparency & trust | 7% (8.8 this run) | 73 | 71 | Cloudflare AI Search +2 | | Negative events | ≤15 | 0 | -2 | | | **Total** | | **73.5 · BB** | **67.7 · B** | | ## 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 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 ` 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). ## For agents - This comparison as JSON: https://www.anchorterminal.com/compare/cloudflare-ai-search-vs-elasticsearch.json, and with the fewest tokens: https://www.anchorterminal.com/compare/cloudflare-ai-search-vs-elasticsearch.min.md - Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "cloudflare-ai-search", "b": "elasticsearch"}`. From a terminal: `anchor compare cloudflare-ai-search elasticsearch` - Each listing in full: https://www.anchorterminal.com/api/v1/tools/cloudflare-ai-search.json and https://www.anchorterminal.com/api/v1/tools/elasticsearch.json ## Other comparisons with Cloudflare AI Search or Elasticsearch - [Chroma API + MCP vs Cloudflare AI Search](https://www.anchorterminal.com/compare/chroma-vs-cloudflare-ai-search.md) - [Chroma API + MCP vs Elasticsearch](https://www.anchorterminal.com/compare/chroma-vs-elasticsearch.md) - [Elasticsearch vs Epsilla Vector Database](https://www.anchorterminal.com/compare/elasticsearch-vs-epsilla.md) - [Elasticsearch vs LanceDB](https://www.anchorterminal.com/compare/elasticsearch-vs-lancedb.md) - [Elasticsearch vs Meilisearch](https://www.anchorterminal.com/compare/elasticsearch-vs-meilisearch.md) - [Elasticsearch vs Milvus and Zilliz Cloud API + MCP](https://www.anchorterminal.com/compare/elasticsearch-vs-milvus-zilliz.md) - [Elasticsearch vs OpenSearch](https://www.anchorterminal.com/compare/elasticsearch-vs-opensearch.md) - [Elasticsearch vs Pinecone API + MCP](https://www.anchorterminal.com/compare/elasticsearch-vs-pinecone.md) - [Elasticsearch vs Qdrant API + MCP](https://www.anchorterminal.com/compare/elasticsearch-vs-qdrant.md) - [Elasticsearch vs Typesense API + MCP](https://www.anchorterminal.com/compare/elasticsearch-vs-typesense.md) - [Elasticsearch vs Upstash Vector API + MCP](https://www.anchorterminal.com/compare/elasticsearch-vs-upstash-vector.md) - [Elasticsearch vs Vespa](https://www.anchorterminal.com/compare/elasticsearch-vs-vespa.md) - [Elasticsearch vs Weaviate API + MCP](https://www.anchorterminal.com/compare/elasticsearch-vs-weaviate.md) - [Cloudflare AI Search vs Epsilla Vector Database](https://www.anchorterminal.com/compare/cloudflare-ai-search-vs-epsilla.md) - [Cloudflare AI Search vs LanceDB](https://www.anchorterminal.com/compare/cloudflare-ai-search-vs-lancedb.md) - [Cloudflare AI Search vs Meilisearch](https://www.anchorterminal.com/compare/cloudflare-ai-search-vs-meilisearch.md) - [Cloudflare AI Search vs Milvus and Zilliz Cloud API + MCP](https://www.anchorterminal.com/compare/cloudflare-ai-search-vs-milvus-zilliz.md) - [Cloudflare AI Search vs OpenSearch](https://www.anchorterminal.com/compare/cloudflare-ai-search-vs-opensearch.md) - [Cloudflare AI Search vs Pinecone API + MCP](https://www.anchorterminal.com/compare/cloudflare-ai-search-vs-pinecone.md) - [Cloudflare AI Search vs Qdrant API + MCP](https://www.anchorterminal.com/compare/cloudflare-ai-search-vs-qdrant.md) - [Cloudflare AI Search vs Typesense API + MCP](https://www.anchorterminal.com/compare/cloudflare-ai-search-vs-typesense.md) - [Cloudflare AI Search vs Upstash Vector API + MCP](https://www.anchorterminal.com/compare/cloudflare-ai-search-vs-upstash-vector.md) - [Cloudflare AI Search vs Vespa](https://www.anchorterminal.com/compare/cloudflare-ai-search-vs-vespa.md) - [Cloudflare AI Search vs Weaviate API + MCP](https://www.anchorterminal.com/compare/cloudflare-ai-search-vs-weaviate.md) --- Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp