lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elisabeth benoit <elisaelisael...@gmail.com>
Subject Re: spellcheck enabled but not getting any suggestions.
Date Fri, 17 Apr 2015 12:36:20 GMT
Shouldn't you specify a spellcheck.dictionary in your request handler?

Best regards,
Elisabeth

2015-04-17 11:24 GMT+02:00 Derek Poh <dpoh@globalsources.com>:

> 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