SOLR and accented characters

后端 未结 3 2068
生来不讨喜
生来不讨喜 2021-01-27 07:12

I have an index for occupations (identifier + occupation):




        
3条回答
  •  耶瑟儿~
    2021-01-27 07:32

    I don't think mysql or your jvm settings have anything to do with this. I suspect one works and the other does not probably due to the SpanishLightStemFilterFactory.

    The right way to achieve matching no matter the diacritics is to use the following:

      
    

    Put that before your tokenizer in both index and query analyzer chains, and any diacritic should be converted to the ascii version. That would make it work always.

提交回复
热议问题