Aggregations are not returned when searching.
Opened this issue · 0 comments
tahseen447 commented
This is an issue I found while trying to run a search query using the GET method.
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations.html
Elasticsearch.get(MyApp.ElasticsearchCluster, "/posts/_doc/_search", '{ "aggs": { "my-agg-name": { "terms": { "field": "my-field" } } } }')
The response returned has these keys ["_shards", "hits", "timed_out", "took"]
I was expecting it to return the aggregations along with the results.
Whereas when i verify by making the http request instead to the endpoint , I get the desired aggregations.