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

Fix storedSource in $lookup bug

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • ALL
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None

      There's currently a bug when `returnStoredSource: true` is added as a field to a `$search` inside of a `$lookup`:

      ```
      $search is only valid as the first stage in a pipeline
      ```

       Users should be allowed to add this flag to any of their `$search` queries. `returnStoredSource` works with `$unionWith` already so a good place to start investigating this issue would be to see how this feature works with that stage.

            Assignee:
            josh.siegel@mongodb.com Josh Siegel
            Reporter:
            josh.siegel@mongodb.com Josh Siegel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: