Skip to content

Aggregations are not returned when searching. #100

@tahseen447

Description

@tahseen447

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions