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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.3, 4.4.9, 5.0.3-rc0, 5.1.0-rc0
    • Affects Version/s: 5.0.3-rc0, 4.4.9-rc0
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v5.0, v4.4
    • QE 2021-09-06

      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.

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

              Created:
              Updated:
              Resolved: