{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/kibana/issues/1084","labels_url":"https://api.github.com/repos/elastic/kibana/issues/1084/labels{/name}","comments_url":"https://api.github.com/repos/elastic/kibana/issues/1084/comments","events_url":"https://api.github.com/repos/elastic/kibana/issues/1084/events","html_url":"https://github.com/elastic/kibana/issues/1084","id":29917503,"number":1084,"title":"Nested type aggregations","user":{"login":"Alex-Ikanow","id":851950,"avatar_url":"https://avatars.githubusercontent.com/u/851950?v=3","gravatar_id":"","url":"https://api.github.com/users/Alex-Ikanow","html_url":"https://github.com/Alex-Ikanow","followers_url":"https://api.github.com/users/Alex-Ikanow/followers","following_url":"https://api.github.com/users/Alex-Ikanow/following{/other_user}","gists_url":"https://api.github.com/users/Alex-Ikanow/gists{/gist_id}","starred_url":"https://api.github.com/users/Alex-Ikanow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alex-Ikanow/subscriptions","organizations_url":"https://api.github.com/users/Alex-Ikanow/orgs","repos_url":"https://api.github.com/users/Alex-Ikanow/repos","events_url":"https://api.github.com/users/Alex-Ikanow/events{/privacy}","received_events_url":"https://api.github.com/users/Alex-Ikanow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/kibana/labels/enhancement","name":"enhancement","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2014-03-21T17:10:34Z","updated_at":"2015-03-20T06:25:18Z","closed_at":null,"body":"This is sort of a duplicate of some other issues I searched for but I haven't seen this particular aspect discussed, so I thought this was worth a separate issue.\r\n\r\nYou read the _mapping field, so you should know when a particular field is nested, so can it not automatically apply the correct nested facet/query when such a field is selected in queries or facets? \r\n\r\n(Alternatively/in addition as suggested by #532, you could have a checkbox to allow users to select it themselves, perhaps as an interim measure)\r\n\r\nI'm sure there are some cases where this gets complicated, but there are also a bunch of cases where it's a straightforward changing of one block of JSON to another."},"comment":{"url":"https://api.github.com/repos/elastic/kibana/issues/comments/83927914","html_url":"https://github.com/elastic/kibana/issues/1084#issuecomment-83927914","issue_url":"https://api.github.com/repos/elastic/kibana/issues/1084","id":83927914,"user":{"login":"ryanrozich","id":3526287,"avatar_url":"https://avatars.githubusercontent.com/u/3526287?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanrozich","html_url":"https://github.com/ryanrozich","followers_url":"https://api.github.com/users/ryanrozich/followers","following_url":"https://api.github.com/users/ryanrozich/following{/other_user}","gists_url":"https://api.github.com/users/ryanrozich/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanrozich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanrozich/subscriptions","organizations_url":"https://api.github.com/users/ryanrozich/orgs","repos_url":"https://api.github.com/users/ryanrozich/repos","events_url":"https://api.github.com/users/ryanrozich/events{/privacy}","received_events_url":"https://api.github.com/users/ryanrozich/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T06:25:18Z","updated_at":"2015-03-20T06:25:18Z","body":"+1"}}