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

regex queries are not working properly #1214

Closed
ismetozalp opened this issue Oct 12, 2016 · 2 comments
Closed

regex queries are not working properly #1214

ismetozalp opened this issue Oct 12, 2016 · 2 comments

Comments

@ismetozalp
Copy link

Hi
reqex queries seems to have problem,
let there be logs collection and a document like this in it.

{
"_id" : ObjectId("56cac81e0a975a255f2f1bd8"),
"a" : "ac",
"l" : "I",
"t" : ISODate("2016-02-22T08:34:38.488Z"),
"r" : "7062064496895063770",
"i" : "94.70.255.145",
"e" : "",
"n" : "",
"c" : "RequestFilter",
"f" : "doFilter",
"m" : "[REQUEST START] $ http://app3.navatom.com/alarga.accounts/alarga.accounts.nocache.js"
}

db.getCollection('logs').find({m: /app3.navatom.com/}); this query returns no result in robomongo 0.9.0

but when i connect to server with "mongo" and run the same query i got results.

however,
db.getCollection('logs').find({m: /app3/});

this works in robomongo seems to be there is problem with the dots.

Thanks!

@juliashibalko
Copy link
Collaborator

Hi @ismetozalp, thank you for reporting! I try to replicate issue, but it works fine for me. So we will continue investigation.
But if you have rather large collection let me suggest you to check workaround described here #1106 (comment). In short you can increase value of shellTimeoutSec in config file and then run query again. Please let me know if it works for you!

@ismetozalp
Copy link
Author

Hi Julia,
After increasing the timeout everything seems fine thanks!

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

No branches or pull requests

2 participants