-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
grouped results pagination show incorrect number of results #1249
Comments
I think this may be a duplicate of #890. |
It's not clear to me how Blacklight can provide the "correct" behavior in this scenario. I think there's an open question whether Blacklight is counting documents or groups (because you could display multiple documents for each group, and provide access to the full list somehow..). |
I agree. It looks to me like blacklight is only seeing the document count and not the group count. My read of the wiki was that blacklight should somehow be able to figure this out by setting the "group" parameter, etc. but I think I was incorrect. |
@starsplatter I think we can figure it out if you have group.format=grouped but you set group.format=simple. The format or the response returned by the simple format is so simple that we can't tell it's a grouped response. |
It does look like a duplicate of #890 I tried changing group.format to grouped but it doesn't affect the count. The only thing that seems to change the response to include the number of groups is to set :'group.ngroups'=>'true' as mentioned in 890. When I do that, I think I'm getting a response that is different than the structure blacklight might be expecting? The start of the grouped response looks like:
|
@starsplatter please gist the result from solr when you set group.format=grouped. It looks like we're getting closer. |
here it is with group.format=grouped and the ngroups also set to true https://gist.github.com/starsplatter/fe89be4fe1df6a3dc07b |
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 )
So here is what I have:
}
and
This 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.
The text was updated successfully, but these errors were encountered: