<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:49:58 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>[DOCS-5263] createIndexes command and the ns index option</title>
                <link>https://jira.mongodb.org/browse/DOCS-5263</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;The &lt;a href=&quot;http://docs.mongodb.org/manual/reference/command/createIndexes/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;createIndexes&lt;/a&gt; command documentation mentions that &lt;tt&gt;ns&lt;/tt&gt; may be specified when creating an index and will be generated by MongoDB if omitted.&lt;/p&gt;

&lt;p&gt;Since the command is executed with a specific database and collection, I curiously tried to see how different &lt;tt&gt;ns&lt;/tt&gt; values were handled. Testing against 3.0 showed that the command fails with a &quot;namespace mismatch&quot; error message if the &lt;tt&gt;ns&lt;/tt&gt; for any index specifies a different database or collection. I&apos;m not surprised, but the documentation lead me to believe that I could specify other namespaces. Perhaps we should clarify that the &lt;tt&gt;ns&lt;/tt&gt; option, if specified, must correspond to the database and collection of the command.&lt;/p&gt;

&lt;p&gt;If I had to guess, &lt;tt&gt;ns&lt;/tt&gt; was a relic from documentation of the legacy index creation method (i.e. inserting into &lt;tt&gt;system.indexes&lt;/tt&gt;), which would have allowed different namespaces to be specified (of various collections, albeit in the same database).&lt;/p&gt;</description>
                <environment></environment>
        <key id="199756">DOCS-5263</key>
            <summary>createIndexes command and the ns index option</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="9">Done</resolution>
                                        <assignee username="steve.renaker@mongodb.com">Steve Renaker</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                            <label>indexing</label>
                    </labels>
                <created>Thu, 23 Apr 2015 01:52:30 +0000</created>
                <updated>Mon, 30 Oct 2023 22:29:39 +0000</updated>
                            <resolved>Wed, 30 Mar 2016 21:48:39 +0000</resolved>
                                                    <fixVersion>Server_Docs_20231030</fixVersion>
                                    <component>manual</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1220247" author="xgen-internal-githook" created="Wed, 30 Mar 2016 18:34:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;steveren&apos;, u&apos;name&apos;: u&apos;Steve Renaker&apos;, u&apos;email&apos;: u&apos;steve.renaker@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-5263&quot; title=&quot;createIndexes command and the ns index option&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-5263&quot;&gt;&lt;del&gt;DOCS-5263&lt;/del&gt;&lt;/a&gt;: removed ns from list of createIndex options&lt;/p&gt;

&lt;p&gt;Signed-off-by: kay &amp;lt;kay.kim@10gen.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/451a3ddddc761958329445b8fe5014ed6fb88b9c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/451a3ddddc761958329445b8fe5014ed6fb88b9c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1220246" author="xgen-internal-githook" created="Wed, 30 Mar 2016 18:34:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;steveren&apos;, u&apos;name&apos;: u&apos;Steve Renaker&apos;, u&apos;email&apos;: u&apos;steve.renaker@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-5263&quot; title=&quot;createIndexes command and the ns index option&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-5263&quot;&gt;&lt;del&gt;DOCS-5263&lt;/del&gt;&lt;/a&gt;: removed ns from list of createIndex options&lt;/p&gt;

&lt;p&gt;Signed-off-by: kay &amp;lt;kay.kim@10gen.com&amp;gt;&lt;br/&gt;
Branch: v3.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/9b44dc2217967fac4816919fa70e5b322f593fd8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/9b44dc2217967fac4816919fa70e5b322f593fd8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1219006" author="steve.renaker" created="Tue, 29 Mar 2016 23:03:55 +0000"  >&lt;p&gt;In that case there&apos;s no reason to include it in the 3.2 manual. I&apos;ll remove it.&lt;/p&gt;</comment>
                            <comment id="1218885" author="steve.renaker" created="Tue, 29 Mar 2016 21:36:48 +0000"  >&lt;p&gt;I&apos;ve verified that all the different index creation commands (createIndexes, createIndex(), ensureIndex()) accept the ns option, but there&apos;s no way to enter anything other than what the default would be without generating an error, so there&apos;s really no reason for the option to exist. Should we remove it from the docs?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 29 Mar 2016 21:36:48 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 46 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>emet.ozar@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 46 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jmikola@mongodb.com</customfieldvalue>
            <customfieldvalue>steve.renaker@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrqdxj:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1162">Docs Sprint 2016(0711-0729)</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrz3qv:</customfieldvalue>

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