[SERVER-10708] negation of query expressions using "$not" Created: 07/Sep/13 Updated: 06/Dec/22 Resolved: 09/Feb/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.5.1, 2.6.3 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Jared Rosoff | Assignee: | Backlog - Query Optimization |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Assigned Teams: |
Query Optimization
|
||||||||||||
| Participants: | |||||||||||||
| Description |
|
It is possible to negate arbitrary expression using the "$nor" expression. This ticket only tracks extending the syntax to allow negating expressions with "$not" as well. Original description: but there is no way to negate an entire expression. some example negated expressions (that don't work now):
|
| Comments |
| Comment by Charlie Swanson [ 09/Feb/21 ] | |||||||||||||||
|
Hi all. I've found SERVER-1454 which I believe is a duplicate of this request, so I am closing it as such. Please leave a comment if you disagree! | |||||||||||||||
| Comment by J Rassi [ 17/Dec/15 ] | |||||||||||||||
|
Note that the $nor operator (available since version 1.4) can be used to negate an expression.
Changing the type of this ticket to "Improvement", to track the work required to extend the syntax for $not. | |||||||||||||||
| Comment by Thomas Rueckstiess [ 19/Aug/14 ] | |||||||||||||||
|
Still not working on 2.6.3. | |||||||||||||||
| Comment by Jared Rosoff [ 07/Sep/13 ] | |||||||||||||||
|
Does not work.
| |||||||||||||||
| Comment by Eliot Horowitz (Inactive) [ 07/Sep/13 ] | |||||||||||||||
|
These should work in 2.5.2, can you verify? |