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

Make $searchMeta creation paths cleaner

    • 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@mongodb.com Finley Lau
            Reporter:
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: