{"action":"created","issue":{"url":"https://api.github.com/repos/projectblacklight/blacklight/issues/1249","labels_url":"https://api.github.com/repos/projectblacklight/blacklight/issues/1249/labels{/name}","comments_url":"https://api.github.com/repos/projectblacklight/blacklight/issues/1249/comments","events_url":"https://api.github.com/repos/projectblacklight/blacklight/issues/1249/events","html_url":"https://github.com/projectblacklight/blacklight/issues/1249","id":107752993,"number":1249,"title":"grouped results pagination show incorrect number of results","user":{"login":"starsplatter","id":2148239,"avatar_url":"https://avatars.githubusercontent.com/u/2148239?v=3","gravatar_id":"","url":"https://api.github.com/users/starsplatter","html_url":"https://github.com/starsplatter","followers_url":"https://api.github.com/users/starsplatter/followers","following_url":"https://api.github.com/users/starsplatter/following{/other_user}","gists_url":"https://api.github.com/users/starsplatter/gists{/gist_id}","starred_url":"https://api.github.com/users/starsplatter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starsplatter/subscriptions","organizations_url":"https://api.github.com/users/starsplatter/orgs","repos_url":"https://api.github.com/users/starsplatter/repos","events_url":"https://api.github.com/users/starsplatter/events{/privacy}","received_events_url":"https://api.github.com/users/starsplatter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-22T16:38:51Z","updated_at":"2015-09-23T20:51:09Z","closed_at":null,"body":"In my catalog controller, I have set up what it looked like I needed to do for result grouping (found mostly by trolling through old posts in the group since the wiki section on grouping is doesn't say much: https://github.com/projectblacklight/blacklight/wiki/Configuration---Results-View )\r\n\r\nSo here is what I have:\r\n\r\n    blacklight_config.default_solr_params = \r\n    { \r\n     :fq => \r\n    :'group.main'=>'true',\r\n      :group=>'true',\r\n      :'group.field'=>'book_id_ts',\r\n      :'group.format'=>'simple',\r\n      :'group.limit' => 1\r\n  }\r\n\r\nand \r\n\r\n    config.index.group = true\r\n    config.index.group_field = 'book_id_ts'\r\n\r\nThis set up returns grouped results but the pagination numbers reflect the ungrouped results. So if there are 17 actual documents but only 12 groups, there will be 12 results but the pagination will state there are 17."},"comment":{"url":"https://api.github.com/repos/projectblacklight/blacklight/issues/comments/142724576","html_url":"https://github.com/projectblacklight/blacklight/issues/1249#issuecomment-142724576","issue_url":"https://api.github.com/repos/projectblacklight/blacklight/issues/1249","id":142724576,"user":{"login":"jcoyne","id":92044,"avatar_url":"https://avatars.githubusercontent.com/u/92044?v=3","gravatar_id":"","url":"https://api.github.com/users/jcoyne","html_url":"https://github.com/jcoyne","followers_url":"https://api.github.com/users/jcoyne/followers","following_url":"https://api.github.com/users/jcoyne/following{/other_user}","gists_url":"https://api.github.com/users/jcoyne/gists{/gist_id}","starred_url":"https://api.github.com/users/jcoyne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcoyne/subscriptions","organizations_url":"https://api.github.com/users/jcoyne/orgs","repos_url":"https://api.github.com/users/jcoyne/repos","events_url":"https://api.github.com/users/jcoyne/events{/privacy}","received_events_url":"https://api.github.com/users/jcoyne/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T20:51:09Z","updated_at":"2015-09-23T20:51:09Z","body":"@starsplatter please gist the result from solr when you set group.format=grouped. It looks like we're getting closer."}}