# Which java Class is good for developing client in spring boot to fetch data from Elastic Search

**URL:** <https://discuss.elastic.co/t/which-java-class-is-good-for-developing-client-in-spring-boot-to-fetch-data-from-elastic-search/178901>\
**Category:** Elasticsearch\
**Created:** [April 29, 2019, 10:30am UTC](https://discuss.elastic.co/t/which-java-class-is-good-for-developing-client-in-spring-boot-to-fetch-data-from-elastic-search/178901 "2019-04-29T10:30:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![localhost](https://avatars.discourse-cdn.com/v4/letter/l/53a042/32.png) [@localhost](https://discuss.elastic.co/u/localhost)\
**Post date:** [April 29, 2019, 10:30am UTC](https://discuss.elastic.co/t/which-java-class-is-good-for-developing-client-in-spring-boot-to-fetch-data-from-elastic-search/178901/1 "2019-04-29T10:30:55Z")

</div>

I have used elasticsearch library in node js and build a simple app which can fetch any key from elastic index .

Example:  
API POST End Point: [http://localhost:8000/serach/index\_name/doc\_type](http://localhost:8000/serach/index_name/doc_type)  
data:  
{  
"\_source": ["user","email"],  
"query": ...,  
"size": ...  
}

I want to know which class i will use in java to achieve same thing.

---

<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:** [April 29, 2019, 1:47pm UTC](https://discuss.elastic.co/t/which-java-class-is-good-for-developing-client-in-spring-boot-to-fetch-data-from-elastic-search/178901/2 "2019-04-29T13:47:02Z")

</div>

Have a look at

> <https://github.com/dadoonet/legacy-search/blob/06-fuzziness/src/main/java/fr/pilato/demo/legacysearch/dao/ElasticsearchDao.java>

This will give you an example.

---

<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 27, 2019, 1:47pm UTC](https://discuss.elastic.co/t/which-java-class-is-good-for-developing-client-in-spring-boot-to-fetch-data-from-elastic-search/178901/3 "2019-05-27T13:47:10Z")

</div>

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