# Invoke elastic search query from Spring boot application

**URL:** <https://discuss.elastic.co/t/invoke-elastic-search-query-from-spring-boot-application/112832>\
**Category:** Elasticsearch\
**Created:** [December 21, 2017, 1:56pm UTC](https://discuss.elastic.co/t/invoke-elastic-search-query-from-spring-boot-application/112832 "2017-12-21T13:56:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Punam.Palekar](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@Punam.Palekar](https://discuss.elastic.co/u/Punam.Palekar)\
**Post date:** [December 21, 2017, 1:56pm UTC](https://discuss.elastic.co/t/invoke-elastic-search-query-from-spring-boot-application/112832/1 "2017-12-21T13:56:03Z")

</div>

Hi , I am having difficulty invoking elastic search from my spring boot application. I want to invoke the below query from my java spring boot application.

GET "[http://localhost:9200/somedata/someaddress/\_search](http://localhost:9200/somedata/someaddress/_search)" -H 'Content-Type: application/json' -d'  
{

"query": {  
"multi\_match" : {  
"query": "80 Church streed road SK4",  
"fields": ["postTown", "postcode" , "buildingNumber" , "thoroughfare"]  
}  
}  
}'

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [January 5, 2018, 12:44am UTC](https://discuss.elastic.co/t/invoke-elastic-search-query-from-spring-boot-application/112832/2 "2018-01-05T00:44:01Z")

</div>

You need to give a little bit more of context so we can help you. What client library are you using to access elasticsearch, if any? What is the difficulty that you are having? Is there an error?

---

<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:** [February 2, 2018, 12:44am UTC](https://discuss.elastic.co/t/invoke-elastic-search-query-from-spring-boot-application/112832/3 "2018-02-02T00:44:18Z")

</div>

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