lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com.INVALID>
Subject Re: Auto suggest with adding accents
Date Thu, 31 Jul 2014 15:20:20 GMT
Hi,

What happens when you add ASCIIFoldingFilter to field type definition of suggestField?

Ahmet


On Thursday, July 31, 2014 5:49 PM, benjelloun <anass.bnj@gmail.com> wrote:
Hello,

i'm trying to autosuggest frensh word with accents,
but if the user write q="gene" it will not suggest "genève", it will suggest
"general","genetic" ...

<searchComponent class="solr.SpellCheckComponent" name="suggests">
    <lst name="spellchecker">
      <str name="name">suggestDic</str>
      <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
      <str
name="lookupImpl">org.apache.solr.spelling.suggest.fst.WFSTLookupFactory</str>
      <str name="storeDir">suggestFolder</str>
      <str name="field">suggestField</str>  
      <str name="buildOnCommit">true</str>
      <bool name="exactMatchFirst">true</bool>
       <str name="sourceLocation ">suggest/emptyDic.txt</str>
    </lst>
    <str name="queryAnalyzerFieldType">textSuggest</str>
  </searchComponent>
  
  <requestHandler class="org.apache.solr.handler.component.SearchHandler"
name="/suggests">
    <lst name="defaults">
      <str name="name">suggests</str>
      <str name="spellcheck">true</str>
      
      <str name="spellcheck.dictionary">suggestDic</str>
      <str name="spellcheck.onlyMorePopular">true</str>
      <str name="spellcheck.count">6</str>  
      <str name="spellcheck.collate">true</str>
      <str name="spellcheck.maxCollations">6</str> 
      <str name="spellcheck.collateExtendedResults">true</str>  
    </lst>
    <arr name="components">
      <str>suggests</str>
    </arr>
  </requestHandler>

The field "suggestField" dont isolate accents.

Thanks for help,

Best regards,
Anass BENJELLOUN




--
View this message in context: http://lucene.472066.n3.nabble.com/Auto-suggest-with-adding-accents-tp4150379.html
Sent from the Solr - User mailing list archive at Nabble.com. 

Mime
View raw message