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

$rankFusion scoreDetails should be empty if not requested by top-level pipeline

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

      Most importantly, if we have a pipeline like [{$rankFusion: {input: {pipelines: {a: [\{$search: {scoreDetails: true}}]}}, scoreDetails: false}], we should not be able to access the scoreDetails populated by $search. We should be sure to test this when the stage with scoreDetails: true is first and not-first in the $rankFusion inputs since that changes if the stage goes at the top-level or underneath a $unionWith once desugared.

            Assignee:
            Unassigned Unassigned
            Reporter:
            will.buerger@mongodb.com Will Buerger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: