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 !