# How different are Elasticsearch and OpenSearch?

**URL:** <https://discuss.elastic.co/t/how-different-are-elasticsearch-and-opensearch/343691>\
**Category:** Elasticsearch\
**Created:** [September 24, 2023, 9:12pm UTC](https://discuss.elastic.co/t/how-different-are-elasticsearch-and-opensearch/343691 "2023-09-24T21:12:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![heermaas3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/heermaas3/32/123579_2.png) [@heermaas3](https://discuss.elastic.co/u/heermaas3)\
**Post date:** [September 24, 2023, 9:12pm UTC](https://discuss.elastic.co/t/how-different-are-elasticsearch-and-opensearch/343691/1 "2023-09-24T21:12:52Z")

</div>

I wanted to ask for a neutral opinion on the differences between Elasticsearch and OpenSearch.  
Are there differences in use/integrating them into my Software? Do I have to write different code to use both of them?  
Can someone name me examples of important features only one of them has?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 24, 2023, 9:37pm UTC](https://discuss.elastic.co/t/how-different-are-elasticsearch-and-opensearch/343691/3 "2023-09-24T21:37:45Z")

</div>

Hi @heermaas3

Well, you _ **are** _ on the Elasticsearch Forum 🙂

So here is our official view ... Performance, OOTB Solutions, etc.

> **[Amazon OpenSearch vs. Elasticsearch | Elastic](https://www.elastic.co/amazon-opensearch-service)**
>
> Does Amazon Elasticsearch Service (Amazon OpenSearch Service) = Elastic Elasticsearch Service? Nope! Let’s take a look at differences and some critical features that are only available through our Elasticsearch Service on Elastic Cloud.

To answer specific questions

> [@heermaas3](#):
>
> Are there differences in use/integrating them into my Software?

> [@heermaas3](#):
>
> Do I have to write different code to use both of them?

The answer to both the questions above is yes; there are now differences in some of the APIs, while some of the APIs are the same.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 25, 2023, 2:15am UTC](https://discuss.elastic.co/t/how-different-are-elasticsearch-and-opensearch/343691/4 "2023-09-25T02:15:37Z")

</div>

Also adding this recent benchmark:

> **[Elasticsearch vs. OpenSearch: Performance and resource utilization analysis](https://www.elastic.co/blog/elasticsearch-opensearch-performance-gap)**
>
> Elasticsearch outperforms OpenSearch by being 40%–140% faster and using fewer resources. A comparison across text querying, sorting, date histogram, range, terms, and resource utilization indicates substantial differences between the two.

---

<div class="post-metadata">

**Author:** ![heermaas3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/heermaas3/32/123579_2.png) [@heermaas3](https://discuss.elastic.co/u/heermaas3)\
**Post date:** [September 25, 2023, 4:15am UTC](https://discuss.elastic.co/t/how-different-are-elasticsearch-and-opensearch/343691/5 "2023-09-25T04:15:29Z")

</div>

Thank you really much for the info!  
I am currently thinking about the use of the Elastic Cloud...  
But to clarify: If I want to combine the use of OpenSearch Service with Self-Hosting, it would make sense to also Self-Host OpenSearch instead of Elasticsearch to make sure the APIs are the same?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 25, 2023, 4:53am UTC](https://discuss.elastic.co/t/how-different-are-elasticsearch-and-opensearch/343691/6 "2023-09-25T04:53:33Z")

</div>

Elastic Cloud Only provides Elasticsearch.

OpenSearch Service is not Elastic Cloud if you have questions about OpenSearch you should visit that forum as we do not address that product here.

I would not attempt to mix Elasticsearch and OpenSearch. That sounds like a recipe for incompatibility.

---

<div class="post-metadata">

**Author:** ![Andrew\_Mora](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_mora/32/125622_2.png) [@Andrew\_Mora](https://discuss.elastic.co/u/Andrew_Mora)\
**Post date:** [September 25, 2023, 2:44pm UTC](https://discuss.elastic.co/t/how-different-are-elasticsearch-and-opensearch/343691/7 "2023-09-25T14:44:32Z")

</div>

> [@heermaas3](#):
>
> I wanted to ask for a neutral opinion on the differences between Elasticsearch and OpenSearch.  
> Are there differences in use/integrating them into my Software? Do I have to write different code to use both of them?  
> Can someone name me examples of important features only one of them has?

Comparing Elasticsearch and OpenSearch is a valid approach. While they share a common core, OpenSearch is open-source and community-driven, offering greater transparency and potential cost savings, while Elasticsearch comes with additional paid features and support options, making it more suitable for enterprises with specific needs. Depending on your project requirements, you may need to adapt your code, but many integrations can work interchangeably with minor adjustments. Some important features unique to Elasticsearch include its machine learning capabilities and advanced security features, while OpenSearch emphasizes a more open and collaborative development approach, which can be appealing for some users.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [September 25, 2023, 2:48pm UTC](https://discuss.elastic.co/t/how-different-are-elasticsearch-and-opensearch/343691/8 "2023-09-25T14:48:50Z")

</div>

> [@heermaas3](#):
>
> But to clarify: If I want to combine the use of OpenSearch Service with Self-Hosting, it would make sense to also Self-Host OpenSearch instead of Elasticsearch to make sure the APIs are the same?

You should consider Opensearch and Elasticsearch as two different and incompatible tools.

While in the past the API was more similar, they diverged too much now and a lot of things are incompatible.

Both tools have their advantages and disadvantages, and which one is best for you depends entirely on your use case.

I prefer Elasticsearch as the development seems to be more active and I'm more familiar with it, but I run both Elasticsearch and Opensearch because of some requirements.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 23, 2023, 2:48pm UTC](https://discuss.elastic.co/t/how-different-are-elasticsearch-and-opensearch/343691/9 "2023-10-23T14:48:51Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
