# Elasticsearch vs Vespa > Vespa scores 70 (BB) on agent readiness against Elasticsearch's 67.7 (B), and leads in 6 of 7 scored categories. Elasticsearch leads on schema & documentation. Both do db vector. Category scores, facts, verdicts and agent notes side by side. - Canonical: https://www.anchorterminal.com/compare/elasticsearch-vs-vespa - Markdown: https://www.anchorterminal.com/compare/elasticsearch-vs-vespa.md (~2,350 tokens) - Slim: https://www.anchorterminal.com/compare/elasticsearch-vs-vespa.min.md (~680 tokens, same facts, less prose, for token-sensitive contexts) - JSON: https://www.anchorterminal.com/compare/elasticsearch-vs-vespa.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 - Updated: 2026-10-09 Vespa scores 70 (BB) on agent readiness against Elasticsearch's 67.7 (B), and leads in 6 of 7 scored categories. Elasticsearch leads on schema & documentation. Both do db vector. - Elasticsearch: grade B, 67.7/100, rank #224 of 842. Markdown https://www.anchorterminal.com/tools/elasticsearch.md · JSON https://www.anchorterminal.com/api/v1/tools/elasticsearch.json - Vespa: grade BB, 70/100, rank #157 of 842. Markdown https://www.anchorterminal.com/tools/vespa.md · JSON https://www.anchorterminal.com/api/v1/tools/vespa.json ## Which one, for what ### 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: - Schema & documentation, 88 against 58 Watch for: More than 20 status notices marked major between 10 July and 8 October 2026, three of them regional service incidents ### Vespa (BB) Good for: Teams that need hybrid retrieval with custom ranking at scale and can maintain a schema and application package. Ahead on: - Reliability, 80 against 62 - Payments & pricing, 40 against 35 - Maintenance & community, 91 against 83 - Transparency & trust, 85 against 71 Also in its favour: - Agent-ready, a grade of BB or better Watch for: No OpenAPI file was found in the docs index. The APIs are described in reference pages only ## Score by category | Category | Weight | Elasticsearch | Vespa | Edge | | --- | --- | --- | --- | --- | | Reliability | 16% (20 this run) | 62 | 80 | Vespa +18 | | Performance | 10%, pending | pending | pending | not scored in this run | | Schema & documentation | 13% (16.2 this run) | 88 | 58 | Elasticsearch +30 | | Agent ergonomics | 13% (16.2 this run) | 77 | 80 | Vespa +3 | | Security & auth | 14% (17.5 this run) | 72 | 75 | Vespa +3 | | Payments & pricing | 10% (12.5 this run) | 35 | 40 | Vespa +5 | | Task success | 10%, pending | pending | pending | not scored in this run | | Maintenance & community | 7% (8.8 this run) | 83 | 91 | Vespa +8 | | Transparency & trust | 7% (8.8 this run) | 71 | 85 | Vespa +14 | | Negative events | ≤15 | -2 | -2 | | | **Total** | | **67.7 · B** | **70 · BB** | | ## Facts side by side | Fact | Elasticsearch | Vespa | | --- | --- | --- | | Kind | HTTP API | HTTP API | | Vendor | Elastic | Vespa.ai AS | | Hosted endpoint | no (local only) | no (local only) | | Transports | HTTP | HTTP | | Auth | OAuth or key | OAuth or key | | Pricing | Pay per use | Pay per use | | x402 | no | no | | Licence | 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 | Apache-2.0 for the engine, the Vespa CLI and pyvespa. Vespa Cloud is a paid hosted service | | Read-only variant documented | no | no | | llms.txt | yes | yes | | Last release | 2026-10-06 | 2026-10-01 | | Terms last updated | couldn't be read | no document linked | | Privacy policy last updated | 2026-09-07 | no date given | | Customer content may train models | couldn't be read | | | Terms restrict automated access | couldn't be read | | | Terms restrict benchmarking | couldn't be read | | | Terms or service can change without notice | couldn't be read | | | Arbitration or class-action waiver | couldn't be read | | | Popularity | 3.1M npm/wk, 7.8M PyPI/wk | 7.1k stars, 180k PyPI/wk | ## Verdicts **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. **Vespa.** Vespa Cloud publishes hourly unit prices, a 99.5% uptime agreement for paying customers and a trial with $300 of credits and no card. Every call needs an application package deployed first, no OpenAPI file was found in the reviewed documentation, and Vespa.ai says it has no official public MCP server. ## Before you call either ### 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 ### Vespa 1. Deploy an application package with a schema before feeding or querying. Use `vespa deploy` and wait for the endpoint to report ready 2. Send a token as `Authorization: Bearer` only to the endpoint marked Token. The mTLS endpoint needs the client certificate and key 3. Set `hits`, `offset` and `presentation.summary` on queries. `hits` is capped at 400 by default and the query timeout defaults to 0.5s 4. On 429 from `/document/v1` reduce the feed rate and back off. On 507 stop feeding, because the cluster is out of memory or disk 5. Use the `condition` parameter for test-and-set writes and expect 412 when it fails or the document is missing ## Questions ### Which is better for AI agents, Elasticsearch or Vespa? Vespa scores 70 (BB) on agent readiness against Elasticsearch's 67.7 (B), and leads in 6 of 7 scored categories. Elasticsearch leads on schema & documentation. ### Do Elasticsearch and Vespa need an API key? Both take an API key or an OAuth sign-in. ### Can an agent call Elasticsearch and Vespa without installing anything? No hosted endpoint is listed for Elasticsearch. No hosted endpoint is listed for Vespa. ### Are Elasticsearch and Vespa open source? Yes. 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). Vespa is open source (Apache-2.0 for the engine, the Vespa CLI and pyvespa. Vespa Cloud is a paid hosted service). ## For agents - This comparison as JSON: https://www.anchorterminal.com/compare/elasticsearch-vs-vespa.json, and with the fewest tokens: https://www.anchorterminal.com/compare/elasticsearch-vs-vespa.min.md - Over MCP at https://www.anchorterminal.com/mcp (no key): `compare_tools {"a": "elasticsearch", "b": "vespa"}`. From a terminal: `anchor compare elasticsearch vespa` - Each listing in full: https://www.anchorterminal.com/api/v1/tools/elasticsearch.json and https://www.anchorterminal.com/api/v1/tools/vespa.json ## Other comparisons with Elasticsearch or Vespa - [Chroma API + MCP vs Elasticsearch](https://www.anchorterminal.com/compare/chroma-vs-elasticsearch.md) - [Chroma API + MCP vs Vespa](https://www.anchorterminal.com/compare/chroma-vs-vespa.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 Milvus and Zilliz Cloud API + MCP](https://www.anchorterminal.com/compare/elasticsearch-vs-milvus-zilliz.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 Weaviate API + MCP](https://www.anchorterminal.com/compare/elasticsearch-vs-weaviate.md) - [Epsilla Vector Database vs Vespa](https://www.anchorterminal.com/compare/epsilla-vs-vespa.md) - [LanceDB vs Vespa](https://www.anchorterminal.com/compare/lancedb-vs-vespa.md) - [Milvus and Zilliz Cloud API + MCP vs Vespa](https://www.anchorterminal.com/compare/milvus-zilliz-vs-vespa.md) - [Pinecone API + MCP vs Vespa](https://www.anchorterminal.com/compare/pinecone-vs-vespa.md) - [Qdrant API + MCP vs Vespa](https://www.anchorterminal.com/compare/qdrant-vs-vespa.md) - [Typesense API + MCP vs Vespa](https://www.anchorterminal.com/compare/typesense-vs-vespa.md) - [Upstash Vector API + MCP vs Vespa](https://www.anchorterminal.com/compare/upstash-vector-vs-vespa.md) - [Vespa vs Weaviate API + MCP](https://www.anchorterminal.com/compare/vespa-vs-weaviate.md)