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

Why does group return an empty result when no documents are matched?

    XMLWordPrintable

    Details

    • Type: Question
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Works as Designed
    • Affects Version/s: 1.8.0-rc2
    • Fix Version/s: None
    • Component/s: MapReduce
    • Labels:
      None
    • Linked BF Score:
      0

      Description

      The result for the "group" function is empty if the affected collection is empty or no documents match the condition. Shouldn't it return the value of the "initial" parameter as the result instead?

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              thierer Martin Thierer
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: