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

Properly configure _pipelineNeedsSearchMeta when $search is in a subpipeline

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

      SERVER-86757 used the _pipelineNeedsSearchMeta field to signal to mongot that a meta cursor is not always necessary. When $search is used in a subpipeline though (like $lookup, $unionWith), we still always request the meta cursor, even when it's not necessary. We should see if it's possible to examine the whole pipeline (not just nested subpipeline) to only return metadata when necessary.

            Assignee:
            backlog-query-integration [DO NOT USE] Backlog - Query Integration
            Reporter:
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: