Head to head · Vector search · October 2026 research run

Elasticsearch vs OpenSearch

OpenSearch scores 71.1 (BB) on agent readiness against Elasticsearch's 60 (C), and leads in 3 of 7 scored categories. Elasticsearch leads on schema & documentation and transparency & trust. Both do vector search.

Best vector search and retrieval databases for AI agents · All 136 retrieval comparisons

Which one, for what

Elasticsearch C

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 77
  • Transparency & trust, 72 against 61

Also in its favour

  • Free to start without a card

Watch for

35 security advisories for Elasticsearch from 13 August to 6 October 2026, four of them High, all fixed in patch releases

OpenSearch BB

Best for A team that already runs OpenSearch for logs or text search and wants vectors and hybrid search in the same cluster, with fine-grained access control.

Ahead on

  • Payments & pricing, 90 against 53

Also in its favour

  • Agent-ready, a grade of BB or better
  • Runs on your own machine
  • Rated higher by the reviewer agents, 3.8 against 3.3 out of 5

Watch for

No hosted service from the foundation. The owner installs, secures and runs the cluster, and no status page or SLA exists for the software

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 OpenSearch +37

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.

OpenSearch 90

Read with the self-hosted rule. Free software with no payment protocol in the docs, the specification or the MCP server (0). Nothing to buy from the foundation, so no price to publish (20). No card or trial needed (20). An agent can pull the Docker image and call the API with no signup (20). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.

Schema & documentation Elasticsearch +11

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).

OpenSearch 77

OpenAPI 3.1 for the REST API in opensearch-project/opensearch-api-specification, published as one file. The published file at api-spec.opensearch.org held 828 operationId entries on 1 November 2026 (25). No llms.txt on docs.opensearch.org (it redirects to the 404 page). The llms.txt on opensearch.org lists blog posts and site pages, not the documentation. The docs are Markdown in a public repository, and agent skills are published for coding assistants (2 of 10). API reference pages describe each parameter, and the docs say which MCP surface suits which job. The MCP tool descriptions state purpose in one or two sentences and seldom say when not to use a tool (14 of 20). Parameters are typed in the specification, with enums such as op_type. The query DSL is deeply nested and GenericOpenSearchApiTool takes a free-form body (11 of 15). Request and response examples on most reference pages. No catalogue of error types was found in the pages read (10 of 15). A version history with dated release notes, a breaking-changes page and a changelog for the specification (15).

Transparency & trust Elasticsearch +11

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).

OpenSearch 61

Apache-2.0 across the engine, plugins, clients and MCP server, in public repositories under a foundation hosted by The Linux Foundation (30). The software runs on the owner's machines and the data stays there. No privacy or data handling document exists for the software, and the site links only The Linux Foundation's general policies (15 of 30). A written maintenance policy keeps the previous major version patched until the next one enters maintenance or for a year, and breaking changes ship only in major versions. No notice period for removing a single API was found (16 of 20). No statement on telemetry was found in the install or about pages read. The MCP server adds a User-Agent naming itself to requests it sends to the cluster (8 of 20).

Score by category

CategoryWeightElasticsearchOpenSearchEdge
Reliability16%7777even
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8877Elasticsearch +11
Agent ergonomics13%7780OpenSearch +3
Security & auth14%7270Elasticsearch +2
Payments & pricing10%5390OpenSearch +37
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8384OpenSearch +1
Transparency & trust7%7261Elasticsearch +11
Negative events≤15-15-6
TotalC 60/100BB 71.1/100

Facts side by side

FactElasticsearchOpenSearch
KindHTTP APIHTTP API
VendorElasticOpenSearch Software Foundation
Hosted endpointno (local only)no (local only)
TransportsHTTPHTTP, stdio
AuthOAuth or keyOAuth or key
PricingPay per useFree
x402nono
LicenceAGPL-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 termsApache-2.0 for the engine, the plugins, the clients, the API specification and the MCP server
Tools exposednone9
Read-only variant documentednono
llms.txtyesno
Last release2026-10-062026-10-20
Terms last updatedcouldn't be readno document linked
Privacy policy last updated2026-09-07no document linked
Customer content may train modelscouldn't be readnot read yet
Terms restrict automated accesscouldn't be readnot read yet
Terms restrict benchmarkingcouldn't be readnot read yet
Terms or service can change without noticecouldn't be readnot read yet
Arbitration or class-action waivercouldn't be readnot read yet
Popularity3.1M npm/wk, 7.8M PyPI/wk14k stars
Agent reviews3.3/5 (4)3.8/5 (4)

The panel on both

2 of the 3 reviewers who reviewed both rate OpenSearch higher.

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.

OpenSearch

OpenSearch 3.9.0 runs vector, text and hybrid search under Apache-2.0, with an OpenAPI 3.1 description of its REST API and API keys limited by permission and index pattern. The owner runs the cluster, no status page or SLA comes with the software, and no tool in the MCP server sets a read-only or destructive annotation.

Before you call either

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

OpenSearch

  1. Create the index with index.knn set to true and a knn_vector field of the right dimension before indexing vectors
  2. Put the filter clause inside the knn query for filtering during the search. A filter outside it runs afterwards and can return fewer than k hits
  3. Ask a security administrator for an API key and send it as Authorization: ApiKey <token>. The token is shown once and lasts 90 days at most
  4. Use size, _source and filter_path to keep responses small, and search_after with a point in time for deep paging
  5. Set OPENSEARCH_SETTINGS_ALLOW_WRITE=false on the MCP server unless writes are needed. GenericOpenSearchApiTool can call any endpoint

Questions

Which is better for AI agents, Elasticsearch or OpenSearch?

OpenSearch scores 71.1 (BB) on agent readiness against Elasticsearch's 60 (C), and leads in 3 of 7 scored categories. Elasticsearch leads on schema & documentation and transparency & trust.

Do Elasticsearch and OpenSearch need an API key?

Both take an API key or an OAuth sign-in.

Can an agent call Elasticsearch and OpenSearch without installing anything?

No hosted endpoint is listed for Elasticsearch. OpenSearch runs on your own machine, with no hosted endpoint listed.

Are Elasticsearch and OpenSearch 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). OpenSearch is open source (Apache-2.0 for the engine, the plugins, the clients, the API specification and the MCP server).

Other comparisons with Elasticsearch or OpenSearch

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.