title: Solr/Lucene spellcheck suggestions based on multiple fields
body: <p>I have a database with Vendor's information: name and address (address, city, zip and country fields). I need to search this database and return some vendors. On the search box, the user could type anything: name of the vendor, part of the address, city, zip,... And, if I can't find any results, I need to implement a google like "Did you mean" feature to give a suggestion to the user.</p>
  
  <p>I thought about using Solr/Lucene to do it. I've installed Solr, exported the information I need using CSV file and created the indexes based on this file. Now I am able to get suggestions from a Solr field using solr.SpellCheckComponent. The thing is my suggestion is based in a single field and need it to get information from address, city, zip, country and name fields.</p>
  
  <p>On solr config file I have something like this:</p>
  
  <pre><code>&lt;searchComponent name="spellcheck" class="solr.SpellCheckComponent"&gt;
  &lt;str name="queryAnalyzerFieldType"&gt;textSpell&lt;/str&gt;
  
  &lt;lst name="spellchecker"&gt;
      &lt;str name="name"&gt;default&lt;/str&gt;
      &lt;str name="field"&gt;name&lt;/str&gt;
      &lt;str name="spellcheckIndexDir"&gt;spellchecker&lt;/str&gt;
  &lt;/lst&gt;
  &lt;/searchComponent&gt;
  
  &lt;requestHandler name="/spell" class="solr.SearchHandler" startup="lazy"&gt;
      &lt;lst name="defaults"&gt;
          &lt;str name="spellcheck.onlyMorePopular"&gt;false&lt;/str&gt;
          &lt;str name="spellcheck.extendedResults"&gt;false&lt;/str&gt;
          &lt;str name="spellcheck.count&gt;1&lt;/str&gt;
      &lt;/lst&gt;
      &lt;arr name="last-components"&gt;
          &lt;str&gt;spellcheck&lt;/str&gt;
      &lt;/arr&gt;
  &lt;/requestHandler&gt;
  </code></pre>
  
  <p>I can run queries like:</p>
  
  <pre><code>http://localhost:8983/solr/spell?q=some_company_name&amp;spellcheck=true&amp;spellcheck.collate=true&amp;spellcheck.build=true
  </code></pre>
  
  <p>Does anyone know how to change my config file in order to have suggestions from multiple fields?</p>
  
  <p>Thanks!!!</p>