title: SOLR Spellcheck not returning results
body: <p>I'm having an annoying issue with the spellcheck component of solr 6.5.0. If I run a query through the spellcheck request handler, /spell, the query works as expected and I get suggested spelling for the incorrect words. </p>
  
  <pre><code>{
    "responseHeader":{
      "status":0,
      "QTime":42},
    "response":{"numFound":0,"start":0,"docs":[]
    },
    "spellcheck":{
      "suggestions":{
        "injary":{
          "numFound":3,
          "startOffset":0,
          "endOffset":6,
          "origFreq":0,
          "suggestion":[{
              "word":"injury",
              "freq":121},
            {
              "word":"inward",
              "freq":3},
            {
              "word":"injure",
              "freq":1}]}},
      "correctlySpelled":false,
      "collations":{
        "collation":{
          "collationQuery":"injury",
          "hits":121,
          "misspellingsAndCorrections":[
            "injary","injury"]},
        "collation":{
          "collationQuery":"inward",
          "hits":3,
          "misspellingsAndCorrections":[
            "injary","inward"]},
        "collation":{
          "collationQuery":"injure",
          "hits":1,
          "misspellingsAndCorrections":[
            "injary","injure"]}}}}
  </code></pre>
  
  <p>But if I run a query through the standard request handler, /select, I get no suggestions.</p>
  
  <pre><code>{
    "responseHeader":{
      "status":0,
      "QTime":0,
      "params":{
        "q":"injary",
        "indent":"on",
        "spellcheck":"on",
        "wt":"json",
        "_":"1492780436450"}},
    "response":{"numFound":0,"start":0,"docs":[]
    }}
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>
  
  <p>I modified the <strong>solrconfig.xml</strong> to bring the two request handlers into line as follows, the rest is default:</p>
  
  <pre><code>     &lt;lst name="spellchecker"&gt;
          &lt;str name="name"&gt;default&lt;/str&gt;
          &lt;str name="field"&gt;content&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.5&lt;/float&gt;
          &lt;int name="maxEdits"&gt;2&lt;/int&gt;
          &lt;int name="minPrefix"&gt;1&lt;/int&gt;
          &lt;int name="maxInspections"&gt;5&lt;/int&gt;
          &lt;int name="minQueryLength"&gt;4&lt;/int&gt;
          &lt;float name="maxQueryFrequency"&gt;0.01&lt;/float&gt;
          &lt;float name="thresholdTokenFrequency"&gt;.0001&lt;/float&gt;
        &lt;/lst&gt;
  
    &lt;requestHandler name="/spell" class="solr.SearchHandler" startup="lazy"&gt;
      &lt;lst name="defaults"&gt;
        &lt;!-- Solr will use suggestions from both the 'default' spellchecker
             and from the 'wordbreak' spellchecker and combine them.
             collations (re-written queries) can include a combination of
             corrections from both spellcheckers --&gt;
        &lt;str name="spellcheck.dictionary"&gt;default&lt;/str&gt;
        &lt;str name="spellcheck"&gt;on&lt;/str&gt;
        &lt;str name="spellcheck.extendedResults"&gt;true&lt;/str&gt;
        &lt;str name="spellcheck.count"&gt;10&lt;/str&gt;
        &lt;str name="spellcheck.alternativeTermCount"&gt;5&lt;/str&gt;
        &lt;str name="spellcheck.maxResultsForSuggest"&gt;5&lt;/str&gt;
        &lt;str name="spellcheck.collate"&gt;true&lt;/str&gt;
        &lt;str name="spellcheck.collateExtendedResults"&gt;true&lt;/str&gt;
        &lt;str name="spellcheck.maxCollationTries"&gt;10&lt;/str&gt;
        &lt;str name="spellcheck.maxCollations"&gt;5&lt;/str&gt;
        &lt;str name="wt"&gt;json&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;
  
  &lt;requestHandler name="/select" class="solr.SearchHandler"&gt;
      &lt;!-- default values for query parameters can be specified, these
           will be overridden by parameters in the request
        --&gt;
      &lt;lst name="defaults"&gt;
        &lt;str name="echoParams"&gt;explicit&lt;/str&gt;
        &lt;int name="rows"&gt;10&lt;/int&gt;
        &lt;str name="df"&gt;_text_&lt;/str&gt;
        &lt;str name="wt"&gt;json&lt;/str&gt;
        &lt;!-- spell check component configuration --&gt;
        &lt;str name="spellcheck"&gt;true&lt;/str&gt;
        &lt;str name="spellcheck.count"&gt;5&lt;/str&gt;
        &lt;str name="spellcheck.collate"&gt;true&lt;/str&gt;
        &lt;str name="spellcheck.maxCollationTries"&gt;5&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>