Turistforeningen / node-mongo-querystring

Query builder for accepting URL query parameters into your MongoDB queries. Safe and feature rich. Supports most of MongoDB's query operators such as $eq, $gt, $lt, $ne, $in, $nin, $exists, $regex, geospatial queries such as bbox and near, as well as your own custom query business logic!
MIT License
100 stars 31 forks source link

problem accents/diacritics #72

Open Idafe opened 7 years ago

Idafe commented 7 years ago

Hi, I'm new to programming, and I still can not find the solution to the next problem of accent searches, they could help me or give me an orientation. Thank you very much.

Hello, thank you very much for this plugin, it has facilitated me a lot of the searches of my web application.

For me everything works very well, except in the searches of accents or tildes.

I have trouble using a search without tilde or accent.

Here are some examples:

with accent url.com/fichas?txt_nombredescriptivo=~cerámica

results 10 with capital letters url.com/fichas?txt_nombredescriptivo=~Cerámica

results 10 without accent url.com/fichas?txt_nombredescriptivo=~ceramica

results 0

Since the mongodb console works for me without the accents, but from the url query no.

Thank you for your time and dedication. Greetings. :) And excuse my English, :(