lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "" <>
Subject Re: Spellcheck
Date Thu, 08 Sep 2011 09:27:34 GMT
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>
    <arr name="last-components">

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

<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>

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message