title: Solr Did you mean (Spell check component)
body: <p>I use solr for my apps and i integrated the spellcheck component but i have some problems : </p>
  
  <p>First : 
  When i type a term separated by space they give me the correction for each term</p>
  
  <p>Eg : <strong>"wat ters"</strong> => <strong>"what term"</strong> but the true is <strong>watters</strong></p>
  
  <p>Second : 
  When i type some phrase with some wrong term. although the other terms are correct they apply the spell for all terms.</p>
  
  <p>Eg : "<strong>Difreences</strong> in <strong>lankuage</strong> use conventions"
   => "Differences in language use <strong>conversions</strong>".</p>
  
  <p>The true is "Differences in language use conventions"</p>
  
  <p>This is my config in <strong>solrconfig.xml</strong> : </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;spell&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;true&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><strong>Schema.xml :</strong></p>
  
  <p>Field type: </p>
  
  <pre><code>&lt;fieldType name="text" class="solr.TextField" positionIncrementGap="100"&gt;
              &lt;analyzer type="index"&gt;
                  &lt;tokenizer class="solr.StandardTokenizerFactory"/&gt;
                  &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
                  &lt;filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="1" splitOnCaseChange="1"/&gt;
                  &lt;filter class="solr.ASCIIFoldingFilterFactory" /&gt;
                  &lt;filter class="solr.SnowballPorterFilterFactory" language="English"/&gt;
                  &lt;filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/&gt;
              &lt;/analyzer&gt;
              &lt;analyzer type="query"&gt;
                  &lt;tokenizer class="solr.StandardTokenizerFactory"/&gt;
                  &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
                  &lt;filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0"/&gt;
                  &lt;filter class="solr.ASCIIFoldingFilterFactory" /&gt;
                  &lt;filter class="solr.SnowballPorterFilterFactory" language="English"/&gt;
                  &lt;filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/&gt;
              &lt;/analyzer&gt;
              &lt;analyzer type="multiterm" &gt;
                  &lt;tokenizer class="solr.WhitespaceTokenizerFactory"/&gt;
                  &lt;filter class="solr.ASCIIFoldingFilterFactory" /&gt;
              &lt;/analyzer&gt;
          &lt;/fieldType&gt;
  
  
      &lt;fieldType name="textSpell" class="solr.TextField" positionIncrementGap="100" omitNorms="true"&gt;
                  &lt;analyzer type="index"&gt;
                     &lt;tokenizer class="solr.WhitespaceTokenizerFactory"/&gt;
                       &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
                       &lt;filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/&gt;
                       &lt;filter class="solr.StandardFilterFactory"/&gt;
                       &lt;filter class="solr.RemoveDuplicatesTokenFilterFactory"/&gt;
                  &lt;/analyzer&gt;
                  &lt;analyzer type="query"&gt;
                       &lt;tokenizer class="solr.WhitespaceTokenizerFactory"/&gt;
                       &lt;filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/&gt;
                       &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
                       &lt;!--&lt;filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/&gt;--&gt;
                       &lt;filter class="solr.StandardFilterFactory"/&gt;
                       &lt;filter class="solr.RemoveDuplicatesTokenFilterFactory"/&gt;
                  &lt;/analyzer&gt;
              &lt;/fieldType&gt;
  </code></pre>
  
  <p>Fields : </p>
  
  <pre><code>&lt;field name="title" type="text" indexed="true" stored="true" termVectors="true"/&gt;
  &lt;field name="spell" type="textSpell" indexed="true" stored="true" multiValued="true"/&gt;
  </code></pre>
  
  <p>Copy Fields</p>
  
  <pre><code>&lt;copyField source="title" dest="spell"/&gt;
  </code></pre>
  
  <p>I would appreciate your help </p>
  
  <p>Cheers</p>