Skip to content
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

accents or tildes query url, it does not work #68

Open
Idafe opened this issue Jun 18, 2017 · 3 comments
Open

accents or tildes query url, it does not work #68

Idafe opened this issue Jun 18, 2017 · 3 comments
Assignees
Labels

Comments

@Idafe
Copy link

Idafe commented Jun 18, 2017

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 Idafe changed the title { foo: { $regex: "bar", $options: "i" }} tildes y acentos, accents or tildes query url, error Jun 18, 2017
@Idafe Idafe changed the title tildes y acentos, accents or tildes query url, error accents or tildes query url, it does not work Jun 18, 2017
@Starefossen Starefossen self-assigned this Jun 18, 2017
@Idafe
Copy link
Author

Idafe commented Jun 27, 2017

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
Copy link
Author

Idafe commented Sep 6, 2017

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

@joseluisr0307
Copy link

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"
}
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants