Always add the "view" information to expCtx

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Right now, we have a function search_helpers::addResolvedNamespaceForSearch() that adds the view information to the ExpressionContext only if it's a search query. I think it makes most sense to always add the view information to the ExpressionContext, particularly in case future devs want access to that information for some reason. We should remove this search-specific helper and have the run_agg path always include view information on the expCtx when applicable.

            Assignee:
            Josh Siegel
            Reporter:
            Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: