{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/4915","labels_url":"https://api.github.com/repos/elastic/elasticsearch/issues/4915/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch/issues/4915/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch/issues/4915/events","html_url":"https://github.com/elastic/elasticsearch/issues/4915","id":26393327,"number":4915,"title":"Paging support for aggregations","user":{"login":"aaneja","id":1797669,"avatar_url":"https://avatars.githubusercontent.com/u/1797669?v=3","gravatar_id":"","url":"https://api.github.com/users/aaneja","html_url":"https://github.com/aaneja","followers_url":"https://api.github.com/users/aaneja/followers","following_url":"https://api.github.com/users/aaneja/following{/other_user}","gists_url":"https://api.github.com/users/aaneja/gists{/gist_id}","starred_url":"https://api.github.com/users/aaneja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaneja/subscriptions","organizations_url":"https://api.github.com/users/aaneja/orgs","repos_url":"https://api.github.com/users/aaneja/repos","events_url":"https://api.github.com/users/aaneja/events{/privacy}","received_events_url":"https://api.github.com/users/aaneja/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/:Aggregations","name":":Aggregations","color":"009800"},{"url":"https://api.github.com/repos/elastic/elasticsearch/labels/discuss","name":"discuss","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":81,"created_at":"2014-01-27T20:48:34Z","updated_at":"2015-09-16T23:05:06Z","closed_at":null,"body":"Terms aggregation  does not support a way to page through the buckets returned.\r\nTo work around this, I've been trying to set 'min_doc_count'  to limit the buckets returned and using a 'exclude' filter, to exclude already 'seen' pages.\r\n\r\nWill this result in better running time performance on the ES cluster as compared to getting all the buckets and then doing my own paging logic client side ?\r\n"},"comment":{"url":"https://api.github.com/repos/elastic/elasticsearch/issues/comments/140920514","html_url":"https://github.com/elastic/elasticsearch/issues/4915#issuecomment-140920514","issue_url":"https://api.github.com/repos/elastic/elasticsearch/issues/4915","id":140920514,"user":{"login":"hugohenrique","id":4316743,"avatar_url":"https://avatars.githubusercontent.com/u/4316743?v=3","gravatar_id":"","url":"https://api.github.com/users/hugohenrique","html_url":"https://github.com/hugohenrique","followers_url":"https://api.github.com/users/hugohenrique/followers","following_url":"https://api.github.com/users/hugohenrique/following{/other_user}","gists_url":"https://api.github.com/users/hugohenrique/gists{/gist_id}","starred_url":"https://api.github.com/users/hugohenrique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugohenrique/subscriptions","organizations_url":"https://api.github.com/users/hugohenrique/orgs","repos_url":"https://api.github.com/users/hugohenrique/repos","events_url":"https://api.github.com/users/hugohenrique/events{/privacy}","received_events_url":"https://api.github.com/users/hugohenrique/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T23:05:06Z","updated_at":"2015-09-16T23:05:06Z","body":"You could scroll using this [method](https://github.com/elastic/elasticsearch/issues/4915#issuecomment-130477123)? Because I could rewrite it for php and not worked :("}}