# Is embedding Elasticsearch \*for testing\* discouraged?

**URL:** <https://discuss.elastic.co/t/is-embedding-elasticsearch-for-testing-discouraged/84186>\
**Category:** Elasticsearch\
**Created:** [May 1, 2017, 10:19pm UTC](https://discuss.elastic.co/t/is-embedding-elasticsearch-for-testing-discouraged/84186 "2017-05-01T22:19:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MerelyAPseudonym](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@MerelyAPseudonym](https://discuss.elastic.co/u/MerelyAPseudonym)\
**Post date:** [May 1, 2017, 10:19pm UTC](https://discuss.elastic.co/t/is-embedding-elasticsearch-for-testing-discouraged/84186/1 "2017-05-01T22:19:51Z")

</div>

An [August 2016 blog post](https://www.elastic.co/blog/elasticsearch-the-server#_embedded_elasticsearch_not_supported) explained that embedding Elasticsearch is “inherently unsafe and not recommended for production” and would no longer be supported. Would someone clarify for me whether embedding _for automated tests_ is also deprecated/unsupported? I suspect that it is, but I’d appreciate knowing for certain.

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [May 1, 2017, 11:51pm UTC](https://discuss.elastic.co/t/is-embedding-elasticsearch-for-testing-discouraged/84186/2 "2017-05-01T23:51:33Z")

</div>

Not really, no. You'd go through so much work to get a half way proper cluster set up and it wouldn't be quite right. The [maven](https://github.com/alexcojocaru/elasticsearch-maven-plugin) plugin should work. You _ought_ to be able to use the Elasticsearch gradle [plugin](http://search.maven.org/#artifactdetails%7Corg.elasticsearch.gradle%7Cbuild-tools%7C5.3.2%7Cjar) if you use gradle but the docs for that aren't as good.

---

<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:** [May 30, 2017, 12:05am UTC](https://discuss.elastic.co/t/is-embedding-elasticsearch-for-testing-discouraged/84186/3 "2017-05-30T00:05:18Z")

</div>

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