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

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 !

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