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

$match w/ $text should not use DocumentSource::setSource() to enforce pipeline position

    XMLWordPrintableJSON

Details

    • Query

    Description

      A $match clause run with $text must be in the first position of an aggregation pipeline. Our current handling for this has DocumentSource::isValidInitialSource() returning false (which is not logically correct when $text is present) paired with a uassert in DocumentSource::setSource to enforce. We should change the way this is handled so that the DocumentSourceMatch interface reports correct information and so that pipeline position validation can be handled externally.

      Attachments

        Activity

          People

            backlog-server-query Backlog - Query Team (Inactive)
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: