lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Acadaca <ph...@acadaca.com>
Subject SpellCheckComponent suggestions and case
Date Fri, 30 Oct 2009 21:21:02 GMT

I am having great difficulty getting SpellCheckComponent to ignore case.

Given a search of Glod, the suggestion is wood
Given a search of glod, the suggestion is gold

I am using LowerCaseTokenizerFactory for both query and index, so as I
understand it Glod and glod should be treated the same. If not, how can I
truly ignore case?

Here is my fieldType:

<fieldType name="spell" class="solr.TextField" positionIncrementGap="100">
  <analyzer type="index">
    <tokenizer class="solr.LowerCaseTokenizerFactory"/>
    <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true"/>
    <filter class="solr.LowerCaseFilterFactory"/>     
    <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
  </analyzer>
  <analyzer type="query">
    <tokenizer class="solr.LowerCaseTokenizerFactory"/>
    <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true"/>
    <filter class="solr.LowerCaseFilterFactory"/>     
    <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
  </analyzer>
</fieldType>


-- 
View this message in context: http://old.nabble.com/SpellCheckComponent-suggestions-and-case-tp26137035p26137035.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message