<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:21:04 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>[DRIVERS-244] get index by name</title>
                <link>https://jira.mongodb.org/browse/DRIVERS-244</link>
                <project id="10980" key="DRIVERS">Drivers</project>
                    <description>&lt;p&gt;It would be handy to have a method &lt;tt&gt;getIndex&lt;/tt&gt; in drivers&apos; APIs and in the mongo shell too.&lt;br/&gt;
This method would return a single index by name.&lt;/p&gt;

&lt;p&gt;Currently there is a workaround to use &lt;tt&gt;findOne&lt;/tt&gt; &lt;tt&gt;on system.indexes&lt;/tt&gt; collection but as I see it&apos;s &lt;a href=&quot;http://docs.mongodb.org/manual/reference/system-collections/#&amp;lt;database&amp;gt;.system.indexes&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;deprecated since version 3.0&lt;/a&gt; and the suggested solution is to use &lt;tt&gt;listIndexes&lt;/tt&gt; which forces me to iterate over the list when I want to find a particular index.&lt;/p&gt;

&lt;p&gt;Here is a stackoverflow post that shows the need for &lt;tt&gt;getIndex&lt;/tt&gt; method:&lt;br/&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/31456202/mongodb-getindex-amend-ttl-index&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://stackoverflow.com/questions/31456202/mongodb-getindex-amend-ttl-index&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="217365">DRIVERS-244</key>
            <summary>get index by name</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="barrie">Barrie Segal</assignee>
                                    <reporter username="LukaszWiktor">?ukasz Wiktor [X]</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 Jul 2015 10:00:46 +0000</created>
                <updated>Mon, 15 Apr 2019 17:28:33 +0000</updated>
                            <resolved>Tue, 4 Oct 2016 20:32:26 +0000</resolved>
                                                                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1400133" author="rathi.gnanasekaran" created="Tue, 4 Oct 2016 20:32:26 +0000"  >&lt;p&gt;Closing the issue as Won&apos;t fix as the feature is not implemented in the server. We will re-open the ticket when &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-18518&quot; title=&quot;Add filter support for listIndexes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-18518&quot;&gt;SERVER-18518&lt;/a&gt; is completed. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="204882">SERVER-18518</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                            <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsb9in:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        </customfields>
    </item>
</channel>
</rss>