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

Odd suggestions with $OR queries #22

Open
ranman opened this issue Nov 16, 2013 · 1 comment
Open

Odd suggestions with $OR queries #22

ranman opened this issue Nov 16, 2013 · 1 comment

Comments

@ranman
Copy link

ranman commented Nov 16, 2013

{
    'queryMask': '{"$query":{"$OR":[{"created_at":{"$gt":"<val>"}},{"launch_date":{"$gt":"<val>"}}]}}',
    'namespace': 'angellist.startups',
    'recommendation': {
        'index': '{"$OR": 1}',
        'namespace': 'angellist.startups',
        'shellCommand': 'db["startups"].ensureIndex({"$OR": 1}, {"background": true})'
    },
    'details': {
        'count': 1,
        'totalTimeMillis': 180,
        'avgTimeMillis': 180
    }
},

Not sure that's a desired behavior. Am I just using this incorrectly?

@esedor
Copy link
Contributor

esedor commented Jan 23, 2014

Thanks for writing! This is undesired for a few reasons, but the primary issue is that "$OR" is not a recognized operator. Will see what we can do about case-insensitivity there. Ultimately, though, Dex doesn't currently recommend for $ors.

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