Hi mrw, It sounds like you (e)dismax is what you should look into. You didn't mention it/them, so I'm assuming you're not aware of them.
See: http://search-lucene.com/?q=dismax+OR+edismax&fc_project=Solr Otis ---- Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Lucene ecosystem search :: http://search-lucene.com/ ----- Original Message ---- > From: mrw <mikerobertsw...@gmail.com> > To: solr-user@lucene.apache.org > Sent: Fri, February 18, 2011 1:56:24 PM > Subject: Understanding multi-field queries with q and fq > > > > After searching this list, Google, and looking through the Pugh book, I am a > little confused about the right way to structure a query. > > The Packt book uses the example of the MusicBrainz DB full of song metadata. > What if they also had the song lyrics in English and German as files on > disk, and wanted to index them along with the metadata, so that each > document would basically have song title, artist, publisher, date, ..., > All_Metadata (copy field of all metadata fields), Text_English, and > Text_German fields? > > There can only be one default field, correct? So if we want to search for > all songs containing (zeppelin AND (dog OR merle)) do we > > repeat the entire query text for all three major fields in the 'q' clause > (assuming we don't want to use the cache): > > q=(+All_Metadata:zeppelin AND (dog OR merle)+Text_English:zeppelin AND (dog > OR merle)+Text_German:(zeppelin AND (dog OR merle)) > > or repeat the entire query text for all three major fields in the 'fq' > clause (assuming we want to use the cache): > > q=*:*&fq=(+All_Metadata:zeppelin AND (dog OR merle)+Text_English:zeppelin > AND (dog OR merle)+Text_German:zeppelin AND (dog OR merle)) > > ? > > Thanks! > > > -- > View this message in context: >http://lucene.472066.n3.nabble.com/Understanding-multi-field-queries-with-q-and-fq-tp2528866p2528866.html > > Sent from the Solr - User mailing list archive at Nabble.com. >