简体   繁体   中英

How to search in Lucene using symbol synonims?

I have been using lucene for text search in Danish language.

I have tried to implement something similar to "symbols synonym". I searched through lucene documentation but cannot find any Analyzer implementation that could help to search like this.

Text should be searched using this symbol synonym map: ø -> [ø, o, oe] å -> [å, a, aa] æ -> [æ, ae]

So word økse should be found using all following: økse , okse , oekse .

I would appreciate any help.

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