Don't manually group by author from your results, the list will always be incomplete... use faceting instead to show the authors of the books you have found in your search.
http://wiki.apache.org/solr/SolrFacetingOverview -----Original Message----- From: beccax [mailto:bec...@gmail.com] Sent: Wednesday, June 01, 2011 11:56 AM To: solr-user@lucene.apache.org Subject: Newbie question: how to deal with different # of search results per page due to pagination then grouping Apologize if this question has already been raised. I tried searching but couldn't find the relevant posts. We've indexed a bunch of documents by different authors. Then for search results, we'd like to show the authors that have 1 or more documents matching the search keywords. The problem is right now our solr search method first paginates results to 100 documents per page, then we take the results and group by authors. This results in different number of authors per page. (Some authors may only have one matching document and others 5 or 10.) How do we change it to somehow show the same number of authors (say 25) per page? I mean alternatively we could just show all the documents themselves ordered by author, but it's not the user experience we're looking for. Thanks so much. And please let me know if you need more details not provided here. B -- View this message in context: http://lucene.472066.n3.nabble.com/Newbie-question-how-to-deal-with-diff erent-of-search-results-per-page-due-to-pagination-then-grouping-tp30121 68p3012168.html Sent from the Solr - User mailing list archive at Nabble.com.