{"action":"closed","issue":{"url":"https://api.github.com/repos/Seddryck/NBi.Elasticsearch/issues/3","repository_url":"https://api.github.com/repos/Seddryck/NBi.Elasticsearch","labels_url":"https://api.github.com/repos/Seddryck/NBi.Elasticsearch/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/Seddryck/NBi.Elasticsearch/issues/3/comments","events_url":"https://api.github.com/repos/Seddryck/NBi.Elasticsearch/issues/3/events","html_url":"https://github.com/Seddryck/NBi.Elasticsearch/issues/3","id":318867729,"number":3,"title":"Support results from aggregations","user":{"login":"Seddryck","id":5455045,"avatar_url":"https://avatars2.githubusercontent.com/u/5455045?v=4","gravatar_id":"","url":"https://api.github.com/users/Seddryck","html_url":"https://github.com/Seddryck","followers_url":"https://api.github.com/users/Seddryck/followers","following_url":"https://api.github.com/users/Seddryck/following{/other_user}","gists_url":"https://api.github.com/users/Seddryck/gists{/gist_id}","starred_url":"https://api.github.com/users/Seddryck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Seddryck/subscriptions","organizations_url":"https://api.github.com/users/Seddryck/orgs","repos_url":"https://api.github.com/users/Seddryck/repos","events_url":"https://api.github.com/users/Seddryck/events{/privacy}","received_events_url":"https://api.github.com/users/Seddryck/received_events","type":"User","site_admin":false},"labels":[{"id":918316972,"url":"https://api.github.com/repos/Seddryck/NBi.Elasticsearch/labels/beta-available","name":"beta-available","color":"16AA16","default":false},{"id":918316954,"url":"https://api.github.com/repos/Seddryck/NBi.Elasticsearch/labels/feature-request","name":"feature-request","color":"006B75","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-30T12:05:35Z","updated_at":"2018-04-30T12:05:50Z","closed_at":"2018-04-30T12:05:50Z","author_association":"OWNER","body":"NBi should be able to execute and understands the result from an aggregation\r\n\r\n``` json\r\nGET /bank/_search\r\n{\r\n  \"size\": 0,\r\n  \"aggs\": {\r\n    \"group_by_state\": {\r\n      \"terms\": {\r\n        \"field\": \"state.keyword\",\r\n        \"size\" : 3,\r\n        \"order\": {\r\n          \"average_balance\": \"desc\"\r\n        }\r\n      },\r\n      \"aggs\": {\r\n        \"average_balance\": {\r\n          \"avg\": {\r\n            \"field\": \"balance\"\r\n          }\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n```"}}
{"actor":{"display_login":"Seddryck"}}