In the RequestHandler spellCheckCompRH you have to make changes as follows:

 <requestHandler name="/spellCheckCompRH" class="solr.SearchHandler">
    <lst name="spellcheck">
        <str name="echoParams">explicit</str>
      
        <str name="spellcheck.dictionary">textSpell</str>
      <str name="spellcheck.onlyMorePopular">false</str>
      
      <str name="spellcheck.extendedResults">true</str>
      
      <str name="spellcheck.count">5</str>
    </lst>
    <arr name="last-components">
      <str>spellcheck</str>
    </arr>
  </requestHandler>

This hopefully should do it.

Also I would suggest that for the time being (i.e. till you get some
results) you dont go with a multivalued field, but with a single valued one.
Build up a dictionary, get some results and then move for multi-valued. I
rememberfacing some issues with regard to multivalued field myself.

Also keep the type of the field in schema.xml as textSpell only.


Am not sure if you have configured the  searchComponent properly

Find:
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">


and add

 <lst name="spellchecker">
        <str name="classname">solr.IndexBasedSpellChecker</str>
        <str name="name">textSpell </str>
        <str name="field">textSpell</str>
        <str name="buildOnOptimize">true</str>
        <str name="spellcheckIndexDir">./spellcheckerDefault</str>
   </lst>






--
View this message in context: 
http://lucene.472066.n3.nabble.com/Spellcheck-tp3315994p3319130.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to