$lookup from a searchView with a mongot subpipeline and mongot queries on a top-level should be consistent

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0, 8.2.0-rc2
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • Minor Change
    • ALL
    • v8.2
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      This is inconsistent with behavior of running a search pipeline on a search view in the top-level of a query, or in a $unionWith - both of which return no results "fails silently"

       

      Happens in every topology. Might have to do with `fromExpCtx->setView`.

       

      See DocumentSourceLookup::resolvedPipeilneHelper

       

      Update union_with_lookup_view_rank_fusion.js and mongot_stage_in_view_definition.js with in the same PR once this behavior is fixed

            Assignee:
            Josh Siegel
            Reporter:
            Mariano Shaar
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: