-
Notifications
You must be signed in to change notification settings - Fork 17
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
Case insensitive search (via regex operator) in MongoDB #11
Comments
Agreed. Even an case a insensitive substring search? title=~=luetooth |
I've largely operated under the thinking that regular expressions are enough for the problems listed here until they prove to be unacceptable for some reason. Historically, mongo's case sensitivity story has not been great until just last month: https://jira.mongodb.org/browse/SERVER-90 If there's a way to benefit from the recent developments in mongo I would probably recommend it be implemented as a custom visitor if possible! |
Can you document how to express regex case insensitive substring match in For clients transforming: q=~=mith (finds Smiths) On Thu, Sep 22, 2016 at 2:13 PM, Paul Rutledge [email protected]
|
Hi guys, I would like to up vote this issue.
will result in finding this user. However, now we want to achieve autocompletion (sth like a "like" statement in regular RDBs). Of course, as we are using mongo we use the regex filtering, sth like:
Unfortunately, I would expect that
will also work, which is not the case. Any suggestions how I can achieve both case insensitivity and autocompletion? Best regards, |
We had the same issue. One of the senior guys in our team found out the code in
|
It would be fine to have the possibility to search case insensitive within mongodb.
At this time a query like this is needed to include lower case words:
title=re=.*Bluetooth.* or title=re=.*bluetooth.*
The text was updated successfully, but these errors were encountered: