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

Allow mapReduce to create full documents

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Component/s: MapReduce
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible

      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}

        Attachments

          Issue Links

            Activity

              Dates

              • Created:
                Updated: