Why not just index one title per document, each having author and specialty fields included? Then you could search titles with a user query and also filter/facet on the author and specialties at the same time. The author bio and other data could be looked up on the fly from a DB if you didn't want to store that all in each document. If the users query is for the titles though, I don't really see the point of indexing authors with no titles but you could include them with nothing in the title field if you wanted them to show up in facets or use a title placeholder for them which says 'No Titles Available' perhaps.
Just a thought Robi -----Original Message----- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: Friday, July 20, 2012 5:07 AM To: solr-user@lucene.apache.org Subject: Re: Solr grouping / facet query 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-tp3995787 > p3995974.html Sent from the Solr - User mailing list archive at > Nabble.com.