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

Make $searchMeta creation paths cleaner

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration

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

              Created:
              Updated: