Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aggregations are not returned when searching. #100

Open
tahseen447 opened this issue Oct 5, 2021 · 0 comments
Open

Aggregations are not returned when searching. #100

tahseen447 opened this issue Oct 5, 2021 · 0 comments

Comments

@tahseen447
Copy link

tahseen447 commented Oct 5, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant