You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Sanjay Dua - Network <du...@network.lilly.com> on 2012/06/20 19:31:07 UTC

Help with Solr File Based spell check

Hi,

We are trying to implement file based search in our application using Solr 1.4. This is the code we have written

-<http://lllydevvm02.sixfeetup.com:8983/solr/admin/file/?file=solrconfig.xml> <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
-<http://lllydevvm02.sixfeetup.com:8983/solr/admin/file/?file=solrconfig.xml> <lst name="spellchecker">
  <str name="name">default</str>
  <str name="classname">solr.FileBasedSpellChecker</str>
  <str name="sourceLocation">/usr/home/lilly/sixfeetup/projects/alm-buildout/etc/solr/spelling.txt</str>
  <str name="spellcheckIndexDir">./filespellchecker</str>
  <str name="accuracy">0.7</str>
  </lst>
  <str name="queryAnalyzerFieldType">text</str>
  </searchComponent>


We are facing a issue and need your help on the same.

When the user searches for a word "medicine", which is a correct word and is present in the dictionary. We still get a suggestion "medicines" from dictionary.

We only want suggestion if the word is incorrectly spelled or is not included in the dictionary.

Can you please provide some suggestions.

Regards,
Sanjay Dua