Tech Duel
Elasticsearch vs OpenSearch
Elasticsearch added AGPLv3 back to its license mix in 2024, so "it's not open source" no longer holds by default. OpenSearch left AWS's sole stewardship the same year for Linux Foundation governance. The right pick now hinges less on licensing panic and more on vector search maturity, managed hosting, and where your infrastructure already lives.
Last reviewed: July 2026
Quick verdict: Elasticsearch vs OpenSearch
Choose Elasticsearch if you need the most mature vector search implementation, run on Google Cloud or Azure, or already have deep Elastic Stack expertise — AGPLv3 now covers most open-source licensing requirements too.
Choose OpenSearch if you run on AWS and want native managed hosting, prefer Apache 2.0's simpler terms, or want vendor-neutral Linux Foundation governance over a single company's roadmap.
The "SSPL forces you to OpenSearch" argument is weaker than it used to be — Elasticsearch has offered a genuine open-source license (AGPLv3) since September 2024.
When to choose Elasticsearch vs OpenSearch
Choose Elasticsearch when…
- You need the most mature vector search implementation — ELSER v2, native HNSW, semantic reranking
- Your infrastructure runs on Google Cloud or Azure, where Elastic Cloud is the native managed option
- Your team already has deep Elastic Stack expertise worth preserving
- You're running large clusters (500+ shards) where a longer production track record reduces allocation edge cases
- AGPLv3 satisfies your open-source licensing requirement without needing to switch projects
Choose OpenSearch when…
- Your organization runs on AWS and wants a managed service inside that ecosystem
- You want Apache 2.0's simpler permissive terms over AGPL's network-copyleft obligations
- You need field-level and document-level security without paying for an Enterprise license tier
- Vendor-neutral, Linux Foundation governance matters more to you than a single company's roadmap
- You want a formal LTS program without a separate enterprise support contract
That's the generic picture. Vector search maturity and where your infrastructure already lives are what usually tip it. ↓
Elasticsearch vs OpenSearch: what actually changed in 2026
The licensing argument that originally drove this whole comparison has substantially resolved. In September 2024, Elastic added AGPLv3, an OSI-approved open-source license, as a third option alongside SSPL and the Elastic License v2. Teams that switched to OpenSearch specifically because Elasticsearch "wasn't open source" can now use Elasticsearch under AGPL instead. That's not a perfect substitute for Apache 2.0, AGPL carries network-copyleft obligations Apache 2.0 doesn't, but "Elasticsearch is closed source" stopped being an accurate blanket claim well before this was last reviewed.
The same month, OpenSearch's governance changed too: AWS handed stewardship to the Linux Foundation's newly formed OpenSearch Software Foundation. That's a real shift from "AWS's fork" to community-governed infrastructure, and it directly addresses the durability concern some teams had about depending on a single vendor's fork. The Foundation followed up in April 2026 with a formal long-term support program, closing a gap that used to favor Elasticsearch's more established release discipline.
None of this erases the projects' real remaining differences. Elasticsearch's vector search tooling is still ahead, and Elastic Cloud's multi-cloud managed offering remains broader than Amazon OpenSearch Service's AWS-only first-class support. But the decision is now genuinely about technical fit and vendor relationship, not a forced choice between "open source" and "not open source."
If a comparison you're reading treats SSPL as Elasticsearch's only license or OpenSearch as simply "AWS's Elasticsearch fork," it predates these 2024 changes.
Elasticsearch vs OpenSearch: serverless pricing in 2026
Both vendors now default new customers to serverless, and the pricing models are structured differently enough that a head-to-head instance comparison no longer tells the whole story. Elasticsearch Serverless bills $0.09 per VCU-hour for search, $0.14 per VCU-hour for ingest, and $0.047/GB/month for storage, with no minimum footprint and no per-endpoint fee as of March 2026. A small workload can genuinely cost a few dollars a month.
Amazon OpenSearch Serverless charges $0.24 per OCU-hour, and production collections require a 2-OCU minimum for indexing plus 2 OCUs for search, which puts a real floor of roughly $350/month on any workload you'd actually run in production, even at near-zero traffic. AWS's OpenSearch Serverless NextGen tier, generally available since May 2026, adds scale-to-zero and decoupled compute/storage billing aimed squarely at closing that gap, but it is opt-in and not yet the default for existing collections.
For spiky or low-traffic workloads, Elasticsearch Serverless is meaningfully cheaper to start. For large, steady-state production clusters already inside AWS, OpenSearch's per-OCU pricing and existing Reserved Instance discounts on the managed (non-serverless) service can still come out ahead, especially once you factor in AWS's own committed-spend credits.
Model your actual traffic pattern before comparing sticker prices. A workload that's spiky or low-volume favors Elasticsearch's pay-per-use floor; a large steady-state cluster on AWS may still favor OpenSearch's managed pricing.
Elasticsearch vs OpenSearch: vector search and RAG workloads
Vector search is where the two projects have diverged the most since the 2021 fork, and it's worth correcting a common assumption: the two are not performance-equivalent just because both wrap Lucene. In Elastic's own 2026 benchmark on a 20-million-document filtered vector search test, Elasticsearch (using its BBQ scalar quantization) reported roughly 90ms average latency versus roughly 687ms for OpenSearch on comparable hardware — Elastic frames this as up to 12x faster, with an even wider gap on exact kNN. Treat that number as a vendor benchmark, not an independent one, but the underlying reason is real: tighter Lucene integration lets Elasticsearch push quantization further without a separate plugin layer.
OpenSearch is not standing still. Its k-NN plugin supports FAISS, NMSLIB, and Lucene engines, OpenSearch 3.5 (February 2026) shipped a 58% vector throughput improvement via SIMD-accelerated FP16 operations, and 3.6 (April 2026) added 1-bit scalar quantization and an Agent-v2 framework for building RAG pipelines natively. For moderate-scale vector workloads, the gap is far smaller than the headline benchmark suggests.
If you're building a large-scale RAG pipeline where p99 vector query latency directly affects user-facing response time, Elasticsearch's quantization advantage is worth validating against your own data. If vector search is one feature among many in a broader logging or observability platform, OpenSearch's native k-NN plugin is good enough for most teams and comes without a license change to plan around.
Don't take either vendor's benchmark at face value — run your own test on your actual document set and filter patterns before committing a production RAG pipeline to either engine.
Get your personalized recommendation
The table above is the same for everyone. Your situation is different. Answer 5 quick questions and we'll generate a recommendation grounded in your actual workflow and team context.
Question 1 of 5
Recommendation
Elasticsearch
confidence score
Based on your workload, hosting plans, and licensing constraints, Elasticsearch is the stronger fit here. Its vector search and quantization advantage becomes significant as your query volume grows, and the AGPL option will matter when…
Get your personalized recommendation
Your answers are saved. Click “Try it free” to jump straight into the app — sign-up only happens when you’re ready to see your recommendation.
Try it free →or
Already have an account? Sign in1 personalized report uses 1 credit · Credit packs from $10 · No subscription required
Common questions about Elasticsearch vs OpenSearch
Is OpenSearch just a free version of Elasticsearch?
Not exactly. OpenSearch is a fork of Elasticsearch 7.10, so it started from the same codebase, but the two projects have diverged meaningfully since 2021. OpenSearch is Apache 2.0 licensed and free with no restrictions. Self-managed Elasticsearch is triple-licensed since September 2024 under AGPLv3, SSPL, and the Elastic License v2, so a genuine OSI-approved open-source option (AGPL) is available again, though it carries its own network-copyleft obligations Apache 2.0 doesn't have. OpenSearch has added its own features (neural search, fine-grained access control in the free tier) that Elasticsearch does not have, and Elasticsearch has added features (BBQ quantization, ELSER v2) that OpenSearch has not fully matched. They are now genuinely different products with different strengths.
Can I use OpenSearch on Google Cloud or Azure?
Yes, but not as a first-class managed service. Amazon OpenSearch Service is AWS-only. On Google Cloud or Azure, you would self-manage OpenSearch on VMs or containers, which means you own the operations burden. Elastic Cloud runs natively as a managed service on both GCP and Azure. If your infrastructure is on GCP or Azure and you want a managed search service, Elasticsearch on Elastic Cloud is the practical choice. If you insist on OpenSearch outside AWS, plan for your platform team to operate it like any other stateful distributed system.
What does the GitHub star difference actually tell us?
Less than it looks like. Elasticsearch sits around 70,000 GitHub stars versus roughly 10,000 for OpenSearch, a gap that mostly reflects Elasticsearch's decade-long head start before the 2021 fork, not current momentum. Stars measure historical mindshare, not who's actively maintaining the code today. OpenSearch's own numbers tell a different story: over 400 contributing organizations and roughly 3,300 individual contributors, a genuinely broader and more vendor-diverse base than Elasticsearch's contributor pool, which remains dominated by Elastic employees. If you care about bus-factor risk on a project one company controls, contributor diversity is the more useful number to look at than stars.
Does the Elastic SSPL license actually affect most companies?
For pure internal use, meaning you run Elasticsearch to power your own applications and never expose it as a service to external customers, the SSPL is effectively a non-issue. You can self-manage Elasticsearch free under the Elastic License v2 without restriction. The SSPL becomes a real problem if you are building a SaaS product where customers access search functionality as a service, or if you want to offer managed Elasticsearch hosting to others. In those cases you need a commercial agreement with Elastic or you switch to OpenSearch. Most enterprises are in the internal-use camp and the license is a legal checkbox, not a practical blocker.
How do Elasticsearch and OpenSearch handle security differently?
This is one of the most practically important differences. Elasticsearch 8.x enables TLS and basic auth by default but gates advanced features (field-level security, document-level security, SAML, OIDC) behind the Enterprise license tier, which starts around $175 per node per month on managed infrastructure. OpenSearch ships the Security plugin with all of those features enabled and free in the open-source distribution. If you need fine-grained access control, role-based field filtering, or SSO integration without a large licensing budget, OpenSearch's security model is a genuine advantage. If you are already paying for Elastic Enterprise for other features, the difference is moot.
How hard is it to migrate from Elasticsearch to OpenSearch, or back?
Easier in one direction than the other. Because OpenSearch forked from Elasticsearch 7.10, migrating an Elasticsearch 7.x cluster to OpenSearch is well-trodden: AWS and the OpenSearch project both publish migration tooling, and most 7.x-era index mappings and queries carry over with minimal changes. Migrating in the other direction, or migrating a cluster already on Elasticsearch 8.x with newer features (ELSER, updated aggregations), is harder, since those APIs have no OpenSearch equivalent and some queries need to be rewritten. Either direction requires a full reindex; there is no in-place client-compatible swap once your mappings or query DSL usage has drifted from the shared 7.10 baseline.