Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-48649

swap $search with $project to allow combining search with views

    • 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.

            Assignee:
            backlog-query-integration [DO NOT USE] Backlog - Query Integration
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: