title: Solr spell check phrases
body: <p>I'm trying to find a way to have two sets of spell checks.</p>
  
  <p>One which handles spellchecking queries for common words found in the documents.  And the other which handles spellchecking the query for items like author names, which can be multiple words long.  I'd like it to work so that if they even get remotely close to an author's name it would display the suggestion; but suggestions for misspellings would require the word distance to be closer.</p>
  
  <p>Right now I have a catch-all field for spellings, but it does a lot of tokenizing, which would break up the phrases; so I can't really use that for the phrase matching as is.</p>
  
  <p>Here is the spell checking components:</p>
  
  <pre><code>&lt;searchComponent name="spellcheck" class="solr.SpellCheckComponent" startup="lazy"&gt;
      &lt;!-- &lt;str name="queryAnalyzerFieldType"&gt;textSpell&lt;/str&gt; --&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="classname"&gt;solr.DirectSolrSpellChecker&lt;/str&gt;
          &lt;str name="distanceMeasure"&gt;internal&lt;/str&gt;
          &lt;float name="accuracy"&gt;0.65&lt;/float&gt;
          &lt;int name="minPrefix"&gt;0&lt;/int&gt;
          &lt;int name="maxEdits"&gt;1&lt;/int&gt;
          &lt;int name="maxInspections"&gt;5&lt;/int&gt;
          &lt;int name="minQueryLength"&gt;3&lt;/int&gt;
          &lt;float name="maxQueryFrequency"&gt;0.0005&lt;/float&gt;
          &lt;float name="thresholdTokenFrequency"&gt;.001&lt;/float&gt;
  
          &lt;str name="buildOnCommit"&gt;true&lt;/str&gt;
      &lt;/lst&gt;
  
      &lt;!-- a spellchecker that can break or combine words.  See "/spell" handler below for usage --&gt;
      &lt;lst name="spellchecker"&gt;
          &lt;str name="name"&gt;wordbreak&lt;/str&gt;
          &lt;str name="classname"&gt;solr.WordBreakSolrSpellChecker&lt;/str&gt;
          &lt;str name="field"&gt;spell&lt;/str&gt;
          &lt;str name="combineWords"&gt;true&lt;/str&gt;
          &lt;str name="breakWords"&gt;true&lt;/str&gt;
          &lt;int name="maxChanges"&gt;1&lt;/int&gt;
  
          &lt;str name="buildOnCommit"&gt;true&lt;/str&gt;
      &lt;/lst&gt;
  &lt;/searchComponent&gt;
  </code></pre>
  
  <p>And the actual spell field:</p>
  
  <pre><code>&lt;fieldType name="textSpell" class="solr.TextField" positionIncrementGap="100" &gt;
          &lt;analyzer&gt;
                  &lt;tokenizer class="solr.StandardTokenizerFactory"/&gt;
                  &lt;filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/&gt;
                  &lt;filter class="solr.EnglishMinimalStemFilterFactory"/&gt;
                  &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
                  &lt;filter class="solr.RemoveDuplicatesTokenFilterFactory"/&gt;
          &lt;/analyzer&gt;
  &lt;/fieldType&gt;
  &lt;field name="spell" type="textSpell" indexed="true" stored="true" multiValued="true"/&gt;
  </code></pre>