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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Aggregation Framework
    • Query Integration

    Description

      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.

      Attachments

        Activity

          People

            backlog-query-integration Backlog - Query Integration
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: