Core Server
  1. Core Server
  2. SERVER-2517

Allow mapReduce to create full documents

    Details

    • Backport:
      No
    • Backward Breaking:
      No
    • # Replies:
      43
    • Last comment by Customer:
      true

      Description

      This is a follow up to a support thread: http://groups.google.com/group/mongodb-user/browse_thread/thread/7e1f16c81940c24b

      Please allow mapReduce jobs to optionally return full documents instead of placing the result into the value field.

      The _id of the documents would be the reduction key, but the returned value from reduce (or finalize) would be required to be a hash. This makes working with a permanent collection generated by a map/reduce job much nicer.

      I suggest that a new out option be added:

      out:

      {document: 1}

        Issue Links

          Activity

          Hide
          Martin Peranic
          added a comment -

          +1

          Show
          Martin Peranic
          added a comment - +1
          Hide
          bertrand
          added a comment -

          +1

          Show
          bertrand
          added a comment - +1
          Hide
          yassine chekkoury
          added a comment -

          +1

          Show
          yassine chekkoury
          added a comment - +1
          Hide
          Kelvin Mackay
          added a comment -

          This would be a game changer. +1!

          Show
          Kelvin Mackay
          added a comment - This would be a game changer. +1!
          Hide
          Rafael
          added a comment -

          +1

          Show
          Rafael
          added a comment - +1

            Dates

            • Created:
              Updated:
              Days since reply:
              8 weeks, 3 days ago
              Date of 1st Reply: