On 5/13/2015 3:36 PM, Steven White wrote: > <requestHandler name="/select_group_a" class="solr.SearchHandler"> > <lst name="defaults"> > <str name="echoParams">explicit</str> > <int name="rows">20</int> > <str name="df">F2,F3,F5</str> > <str name="fl">id,score</str> > </lst> > </requestHandler> > > However, this isn't working because whatever is in "df" is being treated as > single field name.
The df parameter is shorthand for "default field." It is, by definition, a single field -- it is the field searched by default when you don't specify a field directly in a query handled by the default (lucene) query parser. The default parser doesn't search multiple fields for your search terms. What you're going to want to do here is use a different query parser -- dismax or edismax -- and put your field list in the qf field, separated by spaces rather than commas. The qf parameter means "query fields" and is specific to the dismax/edismax parsers. Depending on your exact needs, you may also want to define the pf parameter as well (phrase fields). There is a LOT of detail on these parsers, so I'll give you the documentation links rather than try and explain everything: https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser https://cwiki.apache.org/confluence/display/solr/The+Extended+DisMax+Query+Parser Thanks, Shawn