# Sql queries with elastic search

**URL:** <https://discuss.elastic.co/t/sql-queries-with-elastic-search/198949>\
**Category:** Elasticsearch\
**Created:** [September 10, 2019, 5:48pm UTC](https://discuss.elastic.co/t/sql-queries-with-elastic-search/198949 "2019-09-10T17:48:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Velliyangiri](https://avatars.discourse-cdn.com/v4/letter/v/50afbb/32.png) [@Velliyangiri](https://discuss.elastic.co/u/Velliyangiri)\
**Post date:** [September 10, 2019, 5:48pm UTC](https://discuss.elastic.co/t/sql-queries-with-elastic-search/198949/1 "2019-09-10T17:48:28Z")

</div>

Is it possible to process elastic search using sql queries in java program? If it is yes,give a sample code for this elastic search retrieval over sql queries in java program.Please give me a solution under RestHighLevelClient Api..

---

<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 10, 2019, 6:08pm UTC](https://discuss.elastic.co/t/sql-queries-with-elastic-search/198949/2 "2019-09-10T18:08:29Z")

</div>

I don't know if you can but I wonder about the use case. Why would you do that?

You can with the low level client at least.

---

<div class="post-metadata">

**Author:** ![Velliyangiri](https://avatars.discourse-cdn.com/v4/letter/v/50afbb/32.png) [@Velliyangiri](https://discuss.elastic.co/u/Velliyangiri)\
**Post date:** [September 10, 2019, 6:27pm UTC](https://discuss.elastic.co/t/sql-queries-with-elastic-search/198949/3 "2019-09-10T18:27:03Z")

</div>

Yes i used it.But motive of my project is dont use any external dependency to connect elastic search. So that's the reason i asked..So let you help me.

---

<div class="post-metadata">

**Author:** ![Dv\_Thiyanesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dv_thiyanesh/32/53965_2.png) [@Dv\_Thiyanesh](https://discuss.elastic.co/u/Dv_Thiyanesh)\
**Post date:** [September 10, 2019, 6:33pm UTC](https://discuss.elastic.co/t/sql-queries-with-elastic-search/198949/4 "2019-09-10T18:33:47Z")

</div>

for Me too that same query can you Help out of it....Give Lead from that

---

<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 11, 2019, 6:44am UTC](https://discuss.elastic.co/t/sql-queries-with-elastic-search/198949/5 "2019-09-11T06:44:41Z")

</div>

I don't understand.

> They said that should not use third party application that's why if there is a way.

This is the opposite of:

> Please give me a solution under RestHighLevelClient Api..

What do you want? Use the RestHighLevelClient or not use it?

---

<div class="post-metadata">

**Author:** ![Dv\_Thiyanesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dv_thiyanesh/32/53965_2.png) [@Dv\_Thiyanesh](https://discuss.elastic.co/u/Dv_Thiyanesh)\
**Post date:** [September 11, 2019, 12:41pm UTC](https://discuss.elastic.co/t/sql-queries-with-elastic-search/198949/6 "2019-09-11T12:41:27Z")

</div>

Sir, We have connected using RestHighLevelClient Java API using eclipse IDE  
Our Requirement is we want to connect with elasticsearch using Java API without using third party application like (JDBC Driver) and IDE like eclipse, netbeans. Like normal java program we want to connect and communicate with elastic using command line only. Is there is any way?

---

<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 9, 2019, 12:41pm UTC](https://discuss.elastic.co/t/sql-queries-with-elastic-search/198949/7 "2019-10-09T12:41:34Z")

</div>

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