Hi Jeff,

Some stuff in the config.ini will need to be set and you need to optimize you index following the build so that both dictionaries get built as well.

You're right however, the doco could be improved in this area with recent changes. I'll try to look into it this week if someone doesn't beat me to it.


2009/12/16 Barnett, Jeffrey <jeffrey.barnett@yale.edu>
Is there a place in the wiki or elsewhere that has a setup/checklist for the solrmarc spellchecker and spellShingle features.  I'm building them now with RC2, but only spellShingle seems to be making suggestions.
e.g. searching for "bseball" generates no suggestions, but "bseball League" suggests both "baseball League" and "basketball league"

here is the snippet from schema.xml:
  <field name="spelling" type="textSpell" indexed="true" stored="true"/>
  <field name="spellingShingle" type="textSpellShingle" indexed="true" stored="true" multiValued="true"/>
<!-- CopyFields for Spelling -->
 <!-- ** Basic, single word spelling -->
 <copyField source="allfields" dest="spelling"/>
 <!-- ** Complex, Shingle spelling -->
 <copyField source="author"   dest="spellingShingle"/>
 <copyField source="title"    dest="spellingShingle"/>
 <copyField source="contents" dest="spellingShingle"/>
 <copyField source="series"   dest="spellingShingle"/>
 <copyField source="topic"    dest="spellingShingle"/>

And solrconfig.xml:
    <str name="spellcheck.extendedResults">true</str>
    <str name="spellcheck.onlyMorePopular">true</str>
    <str name="spellcheck.count">20</str>
   <arr name="last-components">
  <searchComponent name="spellcheck" class="org.apache.solr.handler.component.SpellCheckComponent">
   <lst name="spellchecker">
     <str name="name">default</str>
     <str name="field">spellingShingle</str>
     <str name="accuracy">0.75</str>
     <str name="spellcheckIndexDir">./spellShingle</str>
     <str name="queryAnalyzerFieldType">textSpellShingle</str>
     <str name="buildOnOptimize">true</str>
   <lst name="spellchecker">
     <str name="name">basicSpell</str>
     <str name="field">spelling</str>
     <str name="accuracy">0.75</str>
     <str name="spellcheckIndexDir">./spellchecker</str>
     <str name="queryAnalyzerFieldType">textSpell</str>
     <str name="buildOnOptimize">true</str>

Is there any other setup required???

This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
Vufind-tech mailing list