I am using AngularJS with ElasticSearch.
Until now I have been playing around with ElasticSearch using the curl command in my terminal.
Now, I wish to perform a search in AngularJS on my elastic search indices. How do I do it? I assume using $http.get() but I could not find an example anywhere.
Basically, how do I convert the following:
curl -XGET 'http://localhost:9200/twitter/mark/_search?pretty=true&size=100' -d '{
"term": {
"tag": "comedy"
}
}'
to an Angular request? That is how do I achieve the above in AngularJS inside my controller?