-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Query Integration
If someone has a view definition
[ {$project:{a:0}} ]
because field a isn't supposed to be views by some users, it currently prevents those users from being able to use any stage that must be first on that view.
As long as $search doesn't try to match a field that's being projected out, it should be able to swap ahead of such projection making this pipeline legal.