Have you remember to build the index - either by configuring build on commit or 
triggering explicitly spellcheck.build=true 

Jan

> 27. sep. 2021 kl. 09:30 skrev Swapnadeep Mondal <[email protected]>:
> 
> I am using the following configuration to implement file-based spell check
> but it is not showing any suggestions.
> 
> {
>        "name":"spellcheck",
>        "class":"solr.SpellCheckComponent",
>        "queryAnalyzerFieldType":"text_general",
>        "spellchecker":{
>          "name":"default",
>          "classname":"solr.FileBasedSpellChecker",
>          "sourceLocation":"/home/Downloads/words.txt"
>          "spellcheckIndexDir":"./spellcheckerFile",
>          "characterEncoding":"UTF-8",
> 
> "distanceMeasure":"org.apache.lucene.search.spell.LevenshteinDistance",
>          "accuracy":"0.5"
> }
> What am I doing wrong? please help!
> 
> --

Reply via email to