You might try two queries. The first would get your authors, the second would use the returned authors as a filter query and search your titles, grouped by author then combine the two lists. I don't know how big your corpus is, but two queries may well be fast enough....
Best Erick On Thu, Jul 19, 2012 at 10:28 AM, s215903406 <s...@s215903406.onlinehome.us> wrote: > Thanks for the reply. > > To clarify, the idea is to search for authors with certain specialties (eg. > political, horror, etc.) and if they have any published titles relevant to > the user's query, then display those titles next to the author's name. > > At first, I thought it would be great to have all the author's data (name, > location, bio, titles with descriptions, etc) all in one document. Each > title and description being a multivalued field, however, I have no idea how > the "relevant titles" based on the user's query as described above can be > quickly picked from within the document and displayed. > > The only solution I see is to have a doc per title and include the name, > location, bio, etc in each one. As for the author's with no published > titles, simply add their bio data to a document with no title or description > and when I do the "grouping" check to see if the title is blank, then > display "no titles found". > > This could work, though I'm concerned if having all that duplicate bio data > will affect the relevancy of the results or speed/performance of solr? > > Thank you. > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Solr-grouping-facet-query-tp3995787p3995974.html > Sent from the Solr - User mailing list archive at Nabble.com.