Make $searchMeta creation paths cleaner

XMLWordPrintableJSON

    • Query Integration
    • Fully Compatible
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      DocumentSourceSearchMeta::createFromBson() has a few different paths of logic for handling cases like view definitions, non-sharded execution, and sharded execution with a merging pipeline. It also relies on a generic templated helper function createInitialSearchPipeline(), but that function is now only used in this one location. It's a bit tricky to understand the control flow, so we should clean that up and consider consolidating createInitialSearchPipeline() into the $searchMeta-specific logic.

            Assignee:
            Finley Lau
            Reporter:
            Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: