Hi,

Im using Solr 1.4.0 version and tried to use spellcheck component by doing
the following changes in solrconfig.xml

<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
<lst name="spellchecker">   
    <str name="classname">solr.IndexBasedSpellChecker</str>
    <str name="spellcheckIndexDir">./spellchekerFile1</str> 
    <str name="field">spell</str>
    <str name="buildOnCommit">true</str>
  </lst>
</searchComponent>

and included the below in the standard request handler to enable spell check

        <arr name="last-components">
                <str>spellcheck</str>
        </arr>

We have used copyfield for the spell field in schema.xml to contain all the
data from the other fields. The search is working fine with certain queries.
When we try to search for "dep", it does not give any suggestions. 

but, when we search for "depo" there are results which contains "dep" also.
Can you tell me why is that the suggestions are fetched when we query as
"dep"?

Should we use solr.WordBreakSolrSpellChecker to get the indented results? If
so, can you guide us on the required config changes?

Please guide me on this

Thanks 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/SpellCheck-Component-does-not-work-for-certain-words-tp4002573.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to