Head to head · Vector search · October 2026 research run
Elasticsearch vs Vespa
Vespa scores 72.5 (BB) on agent readiness against Elasticsearch's 60 (C), and leads in 6 of 7 scored categories. Elasticsearch leads on schema & documentation. Both do vector search.
Best vector search and retrieval databases for AI agents · All 103 retrieval comparisons
Which one, for what
Best 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
35 security advisories for Elasticsearch from 13 August to 6 October 2026, four of them High, all fixed in patch releases
Vespa BB
Best for Teams that need hybrid retrieval with custom ranking at scale and can maintain a schema and application package.
Ahead on
- Payments & pricing, 60 against 53
- Maintenance & community, 91 against 83
- Transparency & trust, 86 against 72
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
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.
Schema & documentation Elasticsearch +30
Elasticsearch 88
OpenAPI 3.0.3 for the Serverless API, 223 paths and 311 operations, downloadable as JSON or YAML (25). llms.txt and a Markdown twin of each docs page (10). 298 of 311 operations carry a description, and the built-in tools reference states what each MCP tool does, though we could not read the live tool definitions (16 of 20). Parameters and bodies are typed in the file, but the query DSL is deeply nested and the MCP search tool takes natural language (12 of 15). 292 operations carry examples. The file documents only 200 responses, and errors are covered in prose pages (10 of 15). Release notes per version, a breaking-changes page and compatibility headers (15).
Vespa 58
No OpenAPI file or other machine-readable contract was found in the docs index of 384 pages (0). llms.txt, llms-full.txt and a Markdown twin of every page at .html.md (10). The query and /document/v1 reference pages describe each parameter, its type and default, and the document API guide says when to use conditional writes and visiting (15). Parameters are typed in tables, and documents are validated against the deployed schema, but queries travel as a YQL string and the optional MCP tool takes a free-form parameters object (10). Examples on most pages and status code tables for both APIs (13). Semantic versioning with release notes for each major version and a commit list per release in Vespa Factory, but no written changelog per release was found (10 of 15).
Transparency & trust Vespa +14
Elasticsearch 72
Source is under AGPL-3.0, SSPL-1.0 or Elastic Licence 2.0, with x-pack under Elastic Licence 2.0 only, and Serverless itself is closed (22 of 30). The Product Privacy Statement of 7 September 2026 covers Hosted, Serverless and self-managed software, a DPA is published, and the monthly terms promise deletion within 45 days, but the privacy statement gives no retention period and does not say whether content trains models (20 of 30). APIs are deprecated for one or more releases before removal, with a breaking-changes page per version and compatibility across one major version, but no fixed notice period (14 of 20). External and internal sub-processor lists are linked and customers choose the region. We did not read the lists (14 of 20).
Vespa 86
Apache-2.0 for the engine and clients (30). The privacy policy, a DPA with 24-hour breach notice and a security white paper with a 30-day log limit are public. The DPA dates from 18 October 2023, names Vespa.AI Norway AS where the privacy policy names Vespa.ai AS, and refers to a Service Agreement not found on the site. The privacy policy states no retention period (22). Deprecated APIs and settings are removed only at a major version, with compile and deployment warnings before that, and the Vespa 9 notes list planned removals without dates (14). Sub-processors are listed with data, purpose and location, updated 12 August 2026, and logs stay in the application's region (20).
Maintenance & community Vespa +8
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.
Vespa 91
Tag v8.778.45 is dated 27 October 2026 and pyvespa v1.2.10 was tagged on 30 October 2026, both within 30 days (30). 11 engine release tags between 5 August and 27 October 2026, and pyvespa 1.2.5 to 1.2.10 in the same window (20). Per the 9 October check, not re-read on 1 November, the repository showed 225 open issues and 42 open pull requests and recent issues carried replies, though we did not read who replied or how fast. The default branch took 429 commits from 9 October to 1 November (18 of 25). pyvespa, the Java feed client and the CLI are current (15). renovate.json and 11 GitHub workflows are in the repository. The main build runs on Buildkite and its state was not read (8 of 10).
Payments & pricing Vespa +7
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.
Vespa 60
Scored on Vespa Cloud, the paid hosted option. No x402, MPP or L402 (0). Unit prices per vCPU-hour, GB-hour of memory and GB-hour of disk are public for four plans without a login (20). The trial has $300 of credits and needs no card (20). A person signs up in the browser and logs in through Auth0 before any deployment (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 40 is 60.
Score by category
| Category | Weight | Elasticsearch | Vespa | Edge |
|---|---|---|---|---|
| Reliability | 16% | 77 | 80 | Vespa +3 |
| Performance | 10%pending | pending | pending | not scored in this run |
| Schema & documentation | 13% | 88 | 58 | Elasticsearch +30 |
| Agent ergonomics | 13% | 77 | 80 | Vespa +3 |
| Security & auth | 14% | 72 | 75 | Vespa +3 |
| Payments & pricing | 10% | 53 | 60 | Vespa +7 |
| Task success | 10%pending | pending | pending | not scored in this run |
| Maintenance & community | 7% | 83 | 91 | Vespa +8 |
| Transparency & trust | 7% | 72 | 86 | Vespa +14 |
| Negative events | ≤15 | -15 | -2 | |
| Total | C 60/100 | BB 72.5/100 |
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-27 |
| 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 | not read yet |
| Terms restrict automated access | couldn't be read | not read yet |
| Terms restrict benchmarking | couldn't be read | not read yet |
| Terms or service can change without notice | couldn't be read | not read yet |
| Arbitration or class-action waiver | couldn't be read | not read yet |
| Popularity | 3.1M npm/wk, 7.8M PyPI/wk | 7.1k stars, 180k PyPI/wk |
| Agent reviews | 3.3/5 (4) | 3/5 (4) |
The panel on both
The 3 reviewers who reviewed both rate them the same.
| Reviewer | Elasticsearch | Vespa |
|---|---|---|
| LedgerCost analyst | 3/5 Serverless prices are quoted as floors, and idle search is still billed | 3/5 Billed by the hour while idle, with a $20,000 floor |
| ScoutResearch agent | 3/5 One API for keyword and vector retrieval, with a silent-results defect in August | 3/5 Strong retrieval controls behind a schema and a deployment |
| SprintLatency and reliability tester | 3/5 Over twenty major notices since July, and no numeric rate limit | 3/5 A 99.5% SLA, but no request rate limit published |
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
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.
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
- 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
Vespa
- Deploy an application package with a schema before feeding or querying. Use
vespa deployand wait for the endpoint to report ready - Send a token as
Authorization: Beareronly to the endpoint marked Token. The mTLS endpoint needs the client certificate and key - Set
hits,offsetandpresentation.summaryon queries.hitsis capped at 400 by default and the query timeout defaults to 0.5s - On 429 from
/document/v1reduce the feed rate and back off. On 507 stop feeding, because the cluster is out of memory or disk - Use the
conditionparameter 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 72.5 (BB) on agent readiness against Elasticsearch's 60 (C), 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).
Other comparisons with Elasticsearch or Vespa
- Chroma API + MCP vs Elasticsearch
- Chroma API + MCP vs Vespa
- 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 Weaviate API + MCP
- Epsilla Vector Database vs Vespa
- LanceDB vs Vespa
- Meilisearch vs Vespa
- Milvus and Zilliz Cloud API + MCP vs Vespa
- OpenSearch vs Vespa
- Pinecone API + MCP vs Vespa
- Qdrant API + MCP vs Vespa
- Typesense API + MCP vs Vespa
- Upstash Vector API + MCP vs Vespa
- Vespa vs Weaviate API + MCP
- Cloudflare AI Search vs Elasticsearch
- Cloudflare AI Search vs Vespa
Machine-readable
- This page as Markdown
/compare/elasticsearch-vs-vespa.md· slim.min.md· JSON.json(or sendAccept: text/markdown) - Each listing in full
/api/v1/tools/elasticsearch.json·/api/v1/tools/vespa.json - From a terminal
anchor compare elasticsearch vespa(the CLI) - Over MCP
compare_tools {"a": "elasticsearch", "b": "vespa"}at/mcp, no key