-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
searching for a string should ingore case and diacritic accents #73
Comments
A problem with a general solution is that the Thus, we'd need to first identify
Then we implement a helper module that constructs the respective storage type The main question is to identify a common denominator of search function that can
|
|
Since regular expressions have quite a different syntax depending on the storage type when it comes to setting flags (for Zendro we need case insensitivity), a consistent way to define those flags in Zendro has to be defined.
Solutions
|
Response to comment about
|
In order to resolve this issue we should first implement a basic solution and use the |
Ignore case
Currently searching for a string is case sensitive, so that in the example below in the SPA searching for "chaya" yields no results:
Whilst "Chaya" does:
The desired behavior is that "chaya" "Chaya", "chAya" or any similar form should bring the same results than "Chaya".
Accents
We have a similar issue with the special character ´ and others, which in Spanish are used all the time. Unfortunately even if we know that the correct spelling is maíz, users commonly would look for maiz. Therefore we need that searching for a string to ignore accents of anykind, something like:
So that if
maíz
is present in the db, the querymaiz
andmaíz
should yield the same results.The text was updated successfully, but these errors were encountered: