node-mongo-querystring icon indicating copy to clipboard operation
node-mongo-querystring copied to clipboard

accents or tildes query url, it does not work

Open Idafe opened this issue 8 years ago • 3 comments

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, :(

Idafe avatar Jun 18 '17 14:06 Idafe

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, :(

Idafe avatar Jun 27 '17 11:06 Idafe

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, :(

Idafe avatar Sep 06 '17 09:09 Idafe

https://www.codesd.com/item/mongodb-how-to-find-documents-ignoring-case-sensitive-accents-and-logic-in-relation-to-percentage.html

example for cerámica text

db.getCollection('tasks').find({ "name": { "$regex": ".cer[aá]mica.", "$options": "is" } });

joseluisr0307 avatar Sep 10 '18 20:09 joseluisr0307