lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Derek Poh <d...@globalsources.com>
Subject spellcheck enabled but not getting any suggestions.
Date Fri, 17 Apr 2015 09:24:17 GMT
Hi

I have enabled spellcheck but not getting any suggestions 
withincorrectly spelled keywords.
I added the spellcheck into the/select request handler.

What steps did I miss out?

spellcheck list in return result:
<lst name="spellcheck">
<lst name="suggestions"/>
</lst>


solrconfig.xml:

<requestHandler name="/select" class="solr.SearchHandler">
     <!-- default values for query parameters can be specified, these
          will be overridden by parameters in the request
       -->
      <lst name="defaults">
        <str name="echoParams">explicit</str>
        <int name="rows">10</int>
        <str name="df">text</str>
        <!-- Spell checking defaults -->
        <str name="spellcheck">on</str>
        <str name="spellcheck.extendedResults">false</str>
        <str name="spellcheck.count">5</str>
        <str name="spellcheck.alternativeTermCount">2</str>
        <str name="spellcheck.maxResultsForSuggest">5</str>
        <str name="spellcheck.collate">true</str>
        <str name="spellcheck.collateExtendedResults">true</str>
        <str name="spellcheck.maxCollationTries">5</str>
        <str name="spellcheck.maxCollations">3</str>
      </lst>

      <!-- append spellchecking to our list of components -->
      <arr name="last-components">
<str>spellcheck</str>
      </arr>

     </requestHandler>



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message