{"action":"closed","number":73,"pull_request":{"url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/pulls/73","id":41339643,"html_url":"https://github.com/NLPchina/elasticsearch-sql/pull/73","diff_url":"https://github.com/NLPchina/elasticsearch-sql/pull/73.diff","patch_url":"https://github.com/NLPchina/elasticsearch-sql/pull/73.patch","issue_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/issues/73","number":73,"state":"closed","locked":false,"title":"Multiple high level aggregations via the \"group by\"","user":{"login":"ottboy4","id":1182387,"avatar_url":"https://avatars.githubusercontent.com/u/1182387?v=3","gravatar_id":"","url":"https://api.github.com/users/ottboy4","html_url":"https://github.com/ottboy4","followers_url":"https://api.github.com/users/ottboy4/followers","following_url":"https://api.github.com/users/ottboy4/following{/other_user}","gists_url":"https://api.github.com/users/ottboy4/gists{/gist_id}","starred_url":"https://api.github.com/users/ottboy4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ottboy4/subscriptions","organizations_url":"https://api.github.com/users/ottboy4/orgs","repos_url":"https://api.github.com/users/ottboy4/repos","events_url":"https://api.github.com/users/ottboy4/events{/privacy}","received_events_url":"https://api.github.com/users/ottboy4/received_events","type":"User","site_admin":false},"body":"@omershelef, Here is the updated changes for the high level aggregations using the group by. ","created_at":"2015-07-31T13:34:52Z","updated_at":"2015-07-31T13:57:36Z","closed_at":"2015-07-31T13:57:36Z","merged_at":"2015-07-31T13:57:36Z","merge_commit_sha":"c02a512e809d1a6917ba40c5c0182bb2006975b1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/pulls/73/commits","review_comments_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/pulls/73/comments","review_comment_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/issues/73/comments","statuses_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/statuses/3aaac10c1592ccb30dff1b03fc12b7485a3feb0e","head":{"label":"ottboy4:master","ref":"master","sha":"3aaac10c1592ccb30dff1b03fc12b7485a3feb0e","user":{"login":"ottboy4","id":1182387,"avatar_url":"https://avatars.githubusercontent.com/u/1182387?v=3","gravatar_id":"","url":"https://api.github.com/users/ottboy4","html_url":"https://github.com/ottboy4","followers_url":"https://api.github.com/users/ottboy4/followers","following_url":"https://api.github.com/users/ottboy4/following{/other_user}","gists_url":"https://api.github.com/users/ottboy4/gists{/gist_id}","starred_url":"https://api.github.com/users/ottboy4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ottboy4/subscriptions","organizations_url":"https://api.github.com/users/ottboy4/orgs","repos_url":"https://api.github.com/users/ottboy4/repos","events_url":"https://api.github.com/users/ottboy4/events{/privacy}","received_events_url":"https://api.github.com/users/ottboy4/received_events","type":"User","site_admin":false},"repo":{"id":39970695,"name":"elasticsearch-sql","full_name":"ottboy4/elasticsearch-sql","owner":{"login":"ottboy4","id":1182387,"avatar_url":"https://avatars.githubusercontent.com/u/1182387?v=3","gravatar_id":"","url":"https://api.github.com/users/ottboy4","html_url":"https://github.com/ottboy4","followers_url":"https://api.github.com/users/ottboy4/followers","following_url":"https://api.github.com/users/ottboy4/following{/other_user}","gists_url":"https://api.github.com/users/ottboy4/gists{/gist_id}","starred_url":"https://api.github.com/users/ottboy4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ottboy4/subscriptions","organizations_url":"https://api.github.com/users/ottboy4/orgs","repos_url":"https://api.github.com/users/ottboy4/repos","events_url":"https://api.github.com/users/ottboy4/events{/privacy}","received_events_url":"https://api.github.com/users/ottboy4/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ottboy4/elasticsearch-sql","description":"Use SQL to query Elasticsearch","fork":true,"url":"https://api.github.com/repos/ottboy4/elasticsearch-sql","forks_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/forks","keys_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/teams","hooks_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/hooks","issue_events_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/issues/events{/number}","events_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/events","assignees_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/assignees{/user}","branches_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/branches{/branch}","tags_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/tags","blobs_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/git/refs{/sha}","trees_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/statuses/{sha}","languages_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/languages","stargazers_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/stargazers","contributors_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/contributors","subscribers_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/subscribers","subscription_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/subscription","commits_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/commits{/sha}","git_commits_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/git/commits{/sha}","comments_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/comments{/number}","issue_comment_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/issues/comments{/number}","contents_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/contents/{+path}","compare_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/merges","archive_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/downloads","issues_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/issues{/number}","pulls_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/pulls{/number}","milestones_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/milestones{/number}","notifications_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/labels{/name}","releases_url":"https://api.github.com/repos/ottboy4/elasticsearch-sql/releases{/id}","created_at":"2015-07-30T20:22:14Z","updated_at":"2015-07-30T20:22:15Z","pushed_at":"2015-07-31T13:30:37Z","git_url":"git://github.com/ottboy4/elasticsearch-sql.git","ssh_url":"git@github.com:ottboy4/elasticsearch-sql.git","clone_url":"https://github.com/ottboy4/elasticsearch-sql.git","svn_url":"https://github.com/ottboy4/elasticsearch-sql","homepage":"","size":4005,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NLPchina:master","ref":"master","sha":"1b0117737055703c4f653bea3ff79bf3919a785c","user":{"login":"NLPchina","id":7099924,"avatar_url":"https://avatars.githubusercontent.com/u/7099924?v=3","gravatar_id":"","url":"https://api.github.com/users/NLPchina","html_url":"https://github.com/NLPchina","followers_url":"https://api.github.com/users/NLPchina/followers","following_url":"https://api.github.com/users/NLPchina/following{/other_user}","gists_url":"https://api.github.com/users/NLPchina/gists{/gist_id}","starred_url":"https://api.github.com/users/NLPchina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NLPchina/subscriptions","organizations_url":"https://api.github.com/users/NLPchina/orgs","repos_url":"https://api.github.com/users/NLPchina/repos","events_url":"https://api.github.com/users/NLPchina/events{/privacy}","received_events_url":"https://api.github.com/users/NLPchina/received_events","type":"Organization","site_admin":false},"repo":{"id":23282991,"name":"elasticsearch-sql","full_name":"NLPchina/elasticsearch-sql","owner":{"login":"NLPchina","id":7099924,"avatar_url":"https://avatars.githubusercontent.com/u/7099924?v=3","gravatar_id":"","url":"https://api.github.com/users/NLPchina","html_url":"https://github.com/NLPchina","followers_url":"https://api.github.com/users/NLPchina/followers","following_url":"https://api.github.com/users/NLPchina/following{/other_user}","gists_url":"https://api.github.com/users/NLPchina/gists{/gist_id}","starred_url":"https://api.github.com/users/NLPchina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NLPchina/subscriptions","organizations_url":"https://api.github.com/users/NLPchina/orgs","repos_url":"https://api.github.com/users/NLPchina/repos","events_url":"https://api.github.com/users/NLPchina/events{/privacy}","received_events_url":"https://api.github.com/users/NLPchina/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NLPchina/elasticsearch-sql","description":"Use SQL to query Elasticsearch","fork":false,"url":"https://api.github.com/repos/NLPchina/elasticsearch-sql","forks_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/forks","keys_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/teams","hooks_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/hooks","issue_events_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/issues/events{/number}","events_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/events","assignees_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/assignees{/user}","branches_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/branches{/branch}","tags_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/tags","blobs_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/git/refs{/sha}","trees_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/statuses/{sha}","languages_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/languages","stargazers_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/stargazers","contributors_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/contributors","subscribers_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/subscribers","subscription_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/subscription","commits_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/commits{/sha}","git_commits_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/git/commits{/sha}","comments_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/comments{/number}","issue_comment_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/issues/comments{/number}","contents_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/contents/{+path}","compare_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/merges","archive_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/downloads","issues_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/issues{/number}","pulls_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/pulls{/number}","milestones_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/milestones{/number}","notifications_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/labels{/name}","releases_url":"https://api.github.com/repos/NLPchina/elasticsearch-sql/releases{/id}","created_at":"2014-08-24T14:26:31Z","updated_at":"2015-07-31T13:29:57Z","pushed_at":"2015-07-31T13:57:36Z","git_url":"git://github.com/NLPchina/elasticsearch-sql.git","ssh_url":"git@github.com:NLPchina/elasticsearch-sql.git","clone_url":"https://github.com/NLPchina/elasticsearch-sql.git","svn_url":"https://github.com/NLPchina/elasticsearch-sql","homepage":"","size":5041,"stargazers_count":358,"watchers_count":358,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":75,"mirror_url":null,"open_issues_count":13,"forks":75,"open_issues":13,"watchers":358,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NLPchina/elasticsearch-sql/pulls/73"},"html":{"href":"https://github.com/NLPchina/elasticsearch-sql/pull/73"},"issue":{"href":"https://api.github.com/repos/NLPchina/elasticsearch-sql/issues/73"},"comments":{"href":"https://api.github.com/repos/NLPchina/elasticsearch-sql/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/NLPchina/elasticsearch-sql/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/NLPchina/elasticsearch-sql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NLPchina/elasticsearch-sql/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/NLPchina/elasticsearch-sql/statuses/3aaac10c1592ccb30dff1b03fc12b7485a3feb0e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"omershelef","id":9518816,"avatar_url":"https://avatars.githubusercontent.com/u/9518816?v=3","gravatar_id":"","url":"https://api.github.com/users/omershelef","html_url":"https://github.com/omershelef","followers_url":"https://api.github.com/users/omershelef/followers","following_url":"https://api.github.com/users/omershelef/following{/other_user}","gists_url":"https://api.github.com/users/omershelef/gists{/gist_id}","starred_url":"https://api.github.com/users/omershelef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omershelef/subscriptions","organizations_url":"https://api.github.com/users/omershelef/orgs","repos_url":"https://api.github.com/users/omershelef/repos","events_url":"https://api.github.com/users/omershelef/events{/privacy}","received_events_url":"https://api.github.com/users/omershelef/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":8,"additions":113,"deletions":57,"changed_files":8}}