accent sensitive feature for Searchable

This is the forum for JIDE Common Layer which is open sourced at https://github.com/jidesoft/jide-oss. Please note, JIDE technical support doesn't monitor this forum as often as other forums. Please consider subscribe for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

Moderator: JIDE Support

Forum rules
Community driven forum for open source JIDE Common Layer. JIDE technical support doesn't monitor this forum as often as other forums. If you only use JIDE Common Layer, please consider subscribing for technical support for JIDE Common Layer so that you can use customer only forum to get a timely response.

accent sensitive feature for Searchable

Postby andrednasoftware » Wed Nov 28, 2012 7:12 am

Hi,

Is there a way to put a boolean property in Searchable, like caseSensitive, but to do a accentSensitive true/false search.
So, if the property is true, a search like "são" will only match itens with "são" and a search like "sao" only match "sao", but
if the property is set to false the search for "são" match "sao" and "são" and a search like "sao" match both "são" and "sao".

This is a very common feature used for search in languages like portuguese.

Thanks.
andrednasoftware
 
Posts: 18
Joined: Fri Jul 01, 2011 4:42 pm

Re: accent sensitive feature for Searchable

Postby JIDE Support » Wed Nov 28, 2012 9:55 am

Please override Searchable#compare(Object, String) to achieve your goal. Since Collator will have to be used, we are not able to provide this function without breaking the backward compatibility. Hence, we will leave this work to our customers.

Thanks,
JIDE Software Technical Support Team
JIDE Support
Site Admin
 
Posts: 36500
Joined: Sun Sep 14, 2003 10:49 am


Return to JIDE Common Layer Open Source Project Discussion (Community Driven)

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron