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

$$SEARCH_META doesn't get set in $searchMeta if no documents are returned from mongot

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.0.3, 4.4.9, 5.0.3-rc0, 5.1.0-rc0
    • 5.0.3-rc0, 4.4.9-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • v5.0, v4.4
    • QE 2021-09-06

    Description

      Its possible this is because we set $$SEARCH_META at runtime, and since we build the unionWith sub-pipeline before the value is set it remains unset on the copied expression context in the sub-pipeline.

      Attachments

        Activity

          People

            ted.tuckman@mongodb.com Ted Tuckman
            ted.tuckman@mongodb.com Ted Tuckman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: