lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From michaelnazaruk <michaelnaza...@gmail.com>
Subject Re: spellcheck
Date Thu, 11 Feb 2010 15:36:52 GMT

here simple query: 
http://estyledesign:8983/request/select?q=popular&spellcheck=true&qt=keyrequest&spellcheck.extendedResults=true
result: 
populars! but popular is correct word! Maybe i must change some properties
in solrconfig! Here my configs for keyrequest: 
<requestHandler name="keyrequest" class="solr.SearchHandler"> 
    <lst name="defaults"> 
        <str name="defType">dismax</str> 
      <str name="spellcheck.onlyMorePopular">true</str> 
      <str name="spellcheck.extendedResults">false</str> 
      <str name="spellcheck.collate">true</str> 
      <str name="spellcheck.dictionary">external</str> 
    </lst> 
    <arr name="last-components"> 
        <str>query</str> 
        <str>spellcheck</str> 
        <str>mlt</str> 
    </arr> 
</requestHandler> 
and search component: 
<searchComponent name="spellcheck" class="solr.SpellCheckComponent"> 
    <str name="queryAnalyzerFieldType">textSpell</str>   
    <lst name="spellchecker"> 
      <str
name="classname">org.apache.solr.spelling.FileBasedSpellChecker</str> 
      <str name="name">external</str> 
      <str name="sourceLocation">spellings.txt</str> 
      <str name="characterEncoding">UTF-8</str> 
      <str name="spellcheckIndexDir">spellcheckerfile</str> 
    </lst> 
   </searchComponent>
-- 
View this message in context: http://old.nabble.com/spellcheck-tp27527425p27548078.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message