[SERVER-29268] $gt Condition does'nt work Created: 18/May/17 Updated: 18/May/17 Resolved: 18/May/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | 3.2.11 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Marwa FRIAA [X] | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
I have each document has an array of strings named datavalues. When we search for "datavaues grater than 6 and starts with A " with an aggregation pipeline which contains $match and $project it returns all the datavalues. I changed the pipeline to : $match , $project , $match , $project => it works !! when I add another condition "documents contains datavaue grater than 6 and starts with A and datavalue contains B" => it returns all documents . |
| Comments |
| Comment by Marwa FRIAA [X] [ 18/May/17 ] |
|
Hello Thomas , |
| Comment by Kelsey Schubert [ 18/May/17 ] |
|
Hi Marwa FRIAA, Your queries may require the $elemMatch operator. Please note that SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related support discussion please post on the mongodb-user group or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-users group. If you post to the user group, I would recommend providing the complete aggregation pipelines and the resulting output as well as the output you would like. Regards, |