<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:45:40 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-3412] Explain how to drop a Full Text index</title>
                <link>https://jira.mongodb.org/browse/DOCS-3412</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;TL;TR:&lt;br/&gt;
We need to clarify how to delete Full Text indexes, and user must use the proper key:&lt;br/&gt;
db.collection.dropIndex(&lt;/p&gt;
{ &quot;_fts&quot; : &quot;text&quot;, &quot;_ftsx&quot; : 1 }
&lt;p&gt; )&lt;/p&gt;

&lt;p&gt;Details&lt;/p&gt;

&lt;p&gt;The   db.collection.dropIndex(&amp;lt;idx&amp;gt;) use the key of the index as parameter. For most of the index the &quot;key&quot; is the value you pass when you create the index.&lt;/p&gt;

&lt;p&gt;This is not the case for a Full Text index.&lt;/p&gt;

&lt;p&gt;Let&apos;s take an example:&lt;/p&gt;

&lt;p&gt;&amp;#8212; standard index  -----&lt;br/&gt;
db.collection.ensureIndex(  &lt;/p&gt;
{name : 1}
&lt;p&gt;  );&lt;/p&gt;

&lt;p&gt;user can simply do:&lt;br/&gt;
db.collection.dropIndex(  &lt;/p&gt;
{name : 1}
&lt;p&gt;  );&lt;br/&gt;
&amp;gt;&amp;gt; OK&lt;/p&gt;

&lt;p&gt;&amp;#8211; full text search index &amp;#8211;&lt;br/&gt;
db.collection.ensureIndex(  &lt;/p&gt;
{ description : &quot;text&quot;}
&lt;p&gt;  );&lt;/p&gt;

&lt;p&gt;if the user execute : &lt;br/&gt;
db.collection.dropIndex(  &lt;/p&gt;
{ description : &quot;text&quot;}
&lt;p&gt;  );&lt;br/&gt;
the following error is raised:&lt;br/&gt;
 &quot;can&apos;t find index with key:&lt;/p&gt;
{ description: \&quot;text\&quot; }
&lt;p&gt;&quot;&lt;/p&gt;

&lt;p&gt;This is because the key is not  &lt;/p&gt;
{ description : &quot;text&quot;}
&lt;p&gt; as you can look using the command:&lt;br/&gt;
 db.collection.getIndexes(   );&lt;/p&gt;

&lt;p&gt;The key of the index is:&lt;/p&gt;
{ &quot;_fts&quot; : &quot;text&quot;, &quot;_ftsx&quot; : 1 }


&lt;p&gt;The proper command is:&lt;br/&gt;
db.collection.dropIndex(&lt;/p&gt;
{ &quot;_fts&quot; : &quot;text&quot;, &quot;_ftsx&quot; : 1 }
&lt;p&gt; )&lt;/p&gt;






</description>
                <environment></environment>
        <key id="136685">DOCS-3412</key>
            <summary>Explain how to drop a Full Text index</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="kay.kim@mongodb.com">Kay Kim</assignee>
                                    <reporter username="tugdual.grall">Tugdual Grall</reporter>
                        <labels>
                            <label>sprint-slipstream</label>
                    </labels>
                <created>Fri, 16 May 2014 06:49:16 +0000</created>
                <updated>Thu, 22 May 2014 14:20:54 +0000</updated>
                            <resolved>Thu, 22 May 2014 14:20:48 +0000</resolved>
                                    <version>mongodb-2.6</version>
                    <version>mongodb-3.0</version>
                                    <fixVersion>v1.3.5</fixVersion>
                                    <component>manual</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="592980" author="xgen-internal-githook" created="Thu, 22 May 2014 14:20:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;kay-kim&apos;, u&apos;name&apos;: u&apos;kay&apos;, u&apos;email&apos;: u&apos;kay.kim@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-3412&quot; title=&quot;Explain how to drop a Full Text index&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-3412&quot;&gt;&lt;del&gt;DOCS-3412&lt;/del&gt;&lt;/a&gt; drop text index&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/680ad4206ef037af4ffc63851775ff406c72aac9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/680ad4206ef037af4ffc63851775ff406c72aac9&lt;/a&gt;&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>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10855" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Actual Time</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>Wed, 21 May 2014 17:09:05 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 38 weeks, 6 days 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>jess.mokrzecki@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 38 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kay.kim@mongodb.com</customfieldvalue>
            <customfieldvalue>tugdual.grall</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrr11b:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>117626</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|hry5uf:</customfieldvalue>

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