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

XMLWordPrintableJSON

    • Query
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Backlog - Query Team (Inactive)
            Reporter:
            James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: