Hello

I am getting suggestions for Diabetes as diabetes - even though it brings
the same results for both. I used the case filter to no use.

Solrconfig
  <searchComponent name="spellcheck" class="solr.SpellCheckComponent">
        
        <lst name="spellchecker">
        <str name="name">default</str>
        <str name="classname">solr.IndexBasedSpellChecker</str>
        <str 
name="lookupImpl">org.apache.solr.spelling.suggest.tst.TSTLookup</str>
    <str name="field">spell</str>
        <str name="buildOnCommit">true</str>
    <str name="spellcheckIndexDir">spellchecker</str>
        </lst>
</searchComponent>

Schema

<field name="spell" type="textSpell" indexed="true" stored="true"
multiValued="true" />
<field name="title_t" type="text_general" indexed="true" stored="true"
required="false" /> 
<field name="description_t" type="text_general" indexed="true" stored="true"
required="false" />
<field name="health_content_t" type="text_general" indexed="true"
stored="true" required="false" />

<copyField source="health_content_t" dest="spell" />
<copyField source="title_t" dest="spell" />
<copyField source="description_t" dest="spell" />

<fieldType name="textSpell" class="solr.TextField"
positionIncrementGap="100">
                        <analyzer type="index">
                                <tokenizer 
class="solr.StandardTokenizerFactory"/>
                                <filter class="solr.StopFilterFactory" 
ignoreCase="true"
words="stopwords.txt"/>
                                <filter class="solr.StandardFilterFactory"/>
                                <filter class="solr.LowerCaseFilterFactory" />
                                <filter 
class="solr.RemoveDuplicatesTokenFilterFactory"/>
                        </analyzer>
                        <analyzer type="query">
                                <tokenizer 
class="solr.StandardTokenizerFactory"/>
                                <filter class="solr.SynonymFilterFactory" 
synonyms="synonyms.txt"
ignoreCase="true" expand="true"/>
                                <filter class="solr.StopFilterFactory" 
ignoreCase="true"
words="stopwords.txt"/>
                                <filter class="solr.StandardFilterFactory"/>
                                <filter class="solr.LowerCaseFilterFactory" />
                                <filter 
class="solr.RemoveDuplicatesTokenFilterFactory"/>
                        </analyzer>
</fieldType>

Any help is greatly appreciated

Thank you!



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Spell-check-suggestions-because-of-case-tp4285027.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to