# Get method instead of Post method in elasticsearch.js Client search api

**URL:** <https://discuss.elastic.co/t/get-method-instead-of-post-method-in-elasticsearch-js-client-search-api/93131>\
**Category:** Elasticsearch\
**Created:** [July 14, 2017, 7:16am UTC](https://discuss.elastic.co/t/get-method-instead-of-post-method-in-elasticsearch-js-client-search-api/93131 "2017-07-14T07:16:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt\_baker](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_baker/32/19998_2.png) [@matt\_baker](https://discuss.elastic.co/u/matt_baker)\
**Post date:** [July 14, 2017, 7:16am UTC](https://discuss.elastic.co/t/get-method-instead-of-post-method-in-elasticsearch-js-client-search-api/93131/1 "2017-07-14T07:16:52Z")

</div>

Is there a way to search elastic using GET rather than POST method , since i can do this in curl

> ```
> curl -XGET 'localhost:9200/tvseries/internindex/_search?size=5&from=5&pretty' -H 'Content-Type: application/json' -d'
> {
> "query": {
> "bool": {
> "should": [
> { "match": { "showname": "Family guy" }},
> { "match": { "content": "gigitty" }}
> ]
> }
> }
> }
> '
> 
> ```

and it works , how can i do the same using search api of elasticsearch.js !

---

<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:** [August 11, 2017, 7:28am UTC](https://discuss.elastic.co/t/get-method-instead-of-post-method-in-elasticsearch-js-client-search-api/93131/2 "2017-08-11T07:28:46Z")

</div>

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