Hi,
 
I am using Wordnet dictionary for spelling suggestions.
 
The dictionary is converted to Solr index  with only one field "word"
and stored in location <solr-home>/data/syn_index, using syns2Index.java
program available at
http://www.tropo.com/techno/java/lucene/wordnet.html
 
I have added the "word" field in my "schema.xml" as
<field name="word" type="textSpell" indexed="true" stored="true"/>
 
My application data indexes are in <solr-home>/data
 
I am trying to use solr.IndexBasedSpellChecker to get spelling
suggestions.
 
My spell check component is configured as:
 
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
   <str name="queryAnalyzerFieldType">textSpell</str>
   <lst name="spellchecker">
      <str name="name">dict</str>
      <str name="classname">solr.IndexBasedSpellChecker</str>
      <str name="field">word</str>
      <str name="characterEncoding">UTF-8</str>
      <str name="spellcheckIndexDir">./syn_index</str>
   </lst>
</searchComponent>
 
I have added this component to my standard request handler as:
 
<requestHandler name="standard" class="solr.StandardRequestHandler"
default="true">
     <lst name="defaults">
         <str name="echoParams">explicit</str>
     </lst>
     <arr name="last-components">
         <str>spellcheck</str>
     </arr>
</requestHandler>
 
With the above configuration, I do not get any spelling suggestions. Can
somebody help ASAP.
 
Thanks,
~Mukta

Reply via email to