The changes for Solrconfig.xml in solr is as follows
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">

    <lst name="spellchecker">
      
      <str name="name">default</str>
      
      <str name="classname">solr.IndexBasedSpellChecker</str>
      
      <str name="field">spell</str>
      
      <str name="spellcheckIndexDir">./spellchecker</str>
      
      <str name="accuracy">0.7</str>
      
      <float name="thresholdTokenFrequency">.0001</float>
    </lst>
    
    <lst name="spellchecker">
      <str name="name">jarowinkler</str>
      <str name="field">lowerfilt</str>
      
      <str
name="distanceMeasure">org.apache.lucene.search.spell.JaroWinklerDistance</str>
      <str name="spellcheckIndexDir">./spellchecker</str>

    </lst>

    
    <str name="queryAnalyzerFieldType">textSpell</str>
</searchComponent>

And for the Request handler, I have incorporated the following changes:


<requestHandler name="/spellCheckCompRH" class="solr.SearchHandler">
    <lst name="defaults">
          
          <str name="spellcheck">true</str>
      
      <str name="spellcheck.onlyMorePopular">false</str>
          
          <str name="spellcheck.dictionary">default</str>
      
      <str name="spellcheck.extendedResults">false</str>
      
      <str name="spellcheck.count">5</str>
                <str name="spellcheck.build">true</str>
          <str name="spellcheck.collate">true</str>
    </lst>
    <arr name="last-components">
      <str>spellcheck</str>
    </arr>
  </requestHandler>

The same is failing while crawling. I have reveretd my code for now. But can
try it once again and post the exception that I have been getting while
crawling.

--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-implement-Spell-Checker-using-Solr-tp3268450p3274069.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to