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

XMLWordPrintableJSON

    • Query Integration
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:
              [DO NOT USE] Backlog - Query Integration
              Reporter:
              Asya Kamsky
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: