title: Multiple Field Search using Lucene Parser with Solr Using Sunspot
body: <p>I'm using Solr with Sunspot (ruby) and due to other constraints i have to use the Lucene parser instead of the DisMax parser. I need to be able to search using <strong>username</strong> as well as <strong>first_name</strong> fields at the same time. </p>
  
  <p>If i were using DisMax i can specify qf="username+first_name" but using only the lucene parser I am only able to set df (default field) and it will not allow me to specify more than one field. </p>
  
  <p>How can I search multiple fields using the lucene parser? </p>
  
  <p><strong>Update</strong>: Answer: just use the q parameter</p>
  
  <pre><code>adjust_solr_params do |params|
     params[:defType] = "lucene"      
     params[:q] = "username:\"#{params[:q]}\" OR first_name:\"#{params[:q]}\""
   end
  </code></pre>