Search code examples
node.jsmongodbspecial-characters

Special characters search mongodb


Possible Duplicate:
Mongodb match accented characters as underlying character

I'm from a country where we have more characters than English alphabet. Basically what I want to do is:

I have word ščumnik, and I want to search in database for šcumnik, scumnik, sčumnik,

š=s
ž=z
č=c
é=e
...

I want to ignore everything above letter.


Solution

  • Question on how to remove diacritics at StackOverflow

    Article with listing in JavaScript

    After diacritics is removed, you can use the resulted value for example for searching and index building.