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

Comments

Projects
None yet
2 participants
@ismetozalp

ismetozalp commented Oct 12, 2016

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

This comment has been minimized.

Show comment
Hide comment
@juliashibalko

juliashibalko Oct 13, 2016

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!

Collaborator

juliashibalko commented Oct 13, 2016

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

This comment has been minimized.

Show comment
Hide comment
@ismetozalp

ismetozalp Oct 14, 2016

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

ismetozalp commented Oct 14, 2016

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