简体   繁体   中英

Solr spellcheck polish characters

I would be more than grateful for information if sb was able to configure spellcheck in SOLR, so queries returns values when polish characters were replaced with unicoded?

I have spellcheck enabled however I am not getting any results when searching 'slub', while I am getting plenty for 'ślub'

Cheers

You should add an ASCIIFoldingFilterFactory in you spellchecking field configuration.

<filter class="solr.ASCIIFoldingFilterFactory" preserveOriginal="false"/>

Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if one exists.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM