<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:55:52 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-1031] Allow user to choose whether to wrap MapReduce results inside &quot;value&quot;-attribute of result</title>
                <link>https://jira.mongodb.org/browse/SERVER-1031</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;MapReduce queries in the current version always returns a result that contains documents that look like {&quot;_id&quot;:something, &quot;value&quot;:{...}}. In this format, the documents that result from the reduce (and finalize) function are wrapped inside the &quot;value&quot; attribute. This is nice if you want to output documents (which contain their own &quot;_id&quot; that would otherwise clash with the _id in the result set). Sometimes, however, I am returning plain objects or objects of which the _id has been stripped, and it would be nice to not have the extra &quot;value&quot; wrapper. &lt;/p&gt;

&lt;p&gt;Although querying result sets that contain the &apos;value&apos; wrapper is possible, it becomes a bit clumsy (especially since the column names differ from the collection I ran the MapReduce on).&lt;/p&gt;

&lt;p&gt;So my feature request is to add an option that disables the wrapping of results inside the &apos;value&apos; attribute. If the wrapping is disabled, the _id could also be automatically removed to prevent mistakes.&lt;/p&gt;</description>
                <environment>n/a</environment>
        <key id="11811">SERVER-1031</key>
            <summary>Allow user to choose whether to wrap MapReduce results inside &quot;value&quot;-attribute of result</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="tommyvdv">Tommy V</reporter>
                        <labels>
                    </labels>
                <created>Tue, 20 Apr 2010 12:42:48 +0000</created>
                <updated>Tue, 29 May 2012 14:53:30 +0000</updated>
                            <resolved>Wed, 31 Aug 2011 15:15:04 +0000</resolved>
                                    <version>1.3.0</version>
                    <version>1.3.1</version>
                    <version>1.3.2</version>
                    <version>1.3.3</version>
                    <version>1.3.4</version>
                    <version>1.3.5</version>
                    <version>1.4.0</version>
                    <version>1.4.1</version>
                    <version>1.5.0</version>
                                                    <component>Querying</component>
                                        <votes>3</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="51748" author="kbanker" created="Wed, 31 Aug 2011 15:15:04 +0000"  >&lt;p&gt;See newer, related issue.&lt;/p&gt;</comment>
                            <comment id="22082" author="gerhardb" created="Wed, 5 Jan 2011 14:22:17 +0000"  >&lt;p&gt;An additional output option to the mapreduce command&lt;/p&gt;

&lt;p&gt;result: &quot;value&quot;&lt;/p&gt;

&lt;p&gt;would allow for the following options&lt;/p&gt;

&lt;p&gt;result: &quot;value&quot; (=default) wraps the result as it does now inside a value subdocument&lt;br/&gt;
result: &quot;myValue&quot; wraps inside a subdocument &apos;myValue&apos; instead of &apos;value&apos;&lt;br/&gt;
result: &lt;/p&gt;
{ inline: 1 }
&lt;p&gt; doesn&apos;t wrap at all, instead inlines the result into the same level as the _id&lt;/p&gt;

&lt;p&gt;This would be syntacticaly conform to the &apos;out&apos; option since 1.7.4&lt;/p&gt;</comment>
                            <comment id="13729" author="tommyvdv" created="Tue, 20 Apr 2010 12:44:21 +0000"  >&lt;p&gt;If this feature is implemented, MapReduce can also be used to store the results of ordinary queries to another collection (i.e. by specifying the query as &quot;query:&quot;-option to the mapReduce command).&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="14625">SERVER-2517</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 5 Jan 2011 14:22:17 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 25 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 25 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>gerhardb</customfieldvalue>
            <customfieldvalue>kbanker</customfieldvalue>
            <customfieldvalue>tommyvdv</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrijgn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hriov3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>22680</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hri9on:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>