How to make full text search using Grails Searchable Plugin accent insensitive ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have solved this problem with help of Peter Ledbrook’s post, however some effort was needed:
Since latest searchable plugin uses Lucene 2.4.1 which does not contain ASCIIFoldingFilter (available since 2.9.0) and ISOLatin1AccentFilter doesn’t support many languages I have created custom filter for stripping accents:
and corresponding filter provider:
Now all you need to do is to register this filter provider in configuration of searchable plugin (grails-app/conf/Searchable.groovy):