Hi. As I know, for file based spellcheck you need:
 - configure you spellcheck seach component in solrconfig.xml, for example:

<searchComponent name="spellcheck" class="solr.SpellCheckComponent">    
    <lst name="spellchecker">
      <str name="classname">solr.FileBasedSpellChecker</str>
      <str name="name">file</str>
      <str name="sourceLocation">spellings.txt</str>
      <str name="characterEncoding">UTF-8</str>      
      <str name="spellcheckIndexDir">./spellcheckerFile</str>      
    </lst>    
  </searchComponent>

 - then you must get or form spellings.txt, for example:
abaft 
abalone 
abalones 
abandon 
abandoned 
abandonedly 
... 
(each correct word in new line)

 - after that you must build you file to index:
http://wiki.apache.org/solr/SpellCheckComponent#spellcheck.build
for build try do to this:
http://solr:8983/solr/select?q=*:*&spellcheck=true&spellcheck.build=true

After that you can use spellcheck in your search, for example:
http://solr:8983/solr/select?q=bingo&spellcheck=true

Try this, if there is some errors, post here..
P.S. please, read http://wiki.apache.org/solr/SpellCheckComponent for more
information


-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-File-Based-Spell-Check-tp2025671p2027258.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to