<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:46: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-3863] Comment on: &quot;manual/reference/operator/query/text.txt&quot;</title>
                <link>https://jira.mongodb.org/browse/DOCS-3863</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;I found a Bug on search query in mongodb:&lt;/p&gt;

&lt;p&gt;if you add a repeat character in the end of the stringg, the query not find the document.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;db.foo.insert(&lt;/p&gt;
{desc: &quot;This is a string with text&quot;}
&lt;p&gt;);&lt;br/&gt;
db.foo.insert(&lt;/p&gt;
{desc:&quot;This is a string with textt&quot;}
&lt;p&gt;);&lt;br/&gt;
db.foo.ensureIndex(&lt;/p&gt;
{&quot;desc&quot;:&quot;text&quot;}
&lt;p&gt;);&lt;br/&gt;
db.foo.find({&lt;br/&gt;
    $text:&lt;/p&gt;
{
        $search:&quot;text&quot;
    }
&lt;p&gt;});&lt;/p&gt;

&lt;p&gt;The Result is:&lt;/p&gt;

&lt;p&gt;{&lt;br/&gt;
    &quot;_id&quot; : ObjectId(&quot;53dfd9453e1e4201402d2f5d&quot;),&lt;br/&gt;
    &quot;desc&quot; : &quot;This is a string with text&quot;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;And that query, should be:&lt;/p&gt;

&lt;p&gt;{&lt;br/&gt;
    &quot;_id&quot; : ObjectId(&quot;53dfd9453e1e4201402d2f5d&quot;),&lt;br/&gt;
    &quot;desc&quot; : &quot;This is a string with text&quot;&lt;br/&gt;
}&lt;br/&gt;
{&lt;br/&gt;
    &quot;_id&quot; : ObjectId(&quot;53dfd9453e1e4201402d2f5e&quot;),&lt;br/&gt;
    &quot;desc&quot; : &quot;This is a string with textt&quot;&lt;br/&gt;
}&lt;/p&gt;
</description>
                <environment>windows 7 profesional, Linux 14.10, mongodb 2.6.3&lt;br/&gt;
&lt;br/&gt;
*Location*: &lt;a href=&quot;http://docs.mongodb.org/manual/reference/operator/query/text/&quot;&gt;http://docs.mongodb.org/manual/reference/operator/query/text/&lt;/a&gt;&lt;br/&gt;
*User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36&lt;br/&gt;
*Referrer*: &lt;a href=&quot;http://docs.mongodb.org/manual/reference/operator/query/regex/&quot;&gt;http://docs.mongodb.org/manual/reference/operator/query/regex/&lt;/a&gt;&lt;br/&gt;
*Screen Resolution*: 1600 x 900&lt;br/&gt;
*repo*: docs&lt;br/&gt;
*source*: reference/operator/query/text&lt;br/&gt;
</environment>
        <key id="150775">DOCS-3863</key>
            <summary>Comment on: &quot;manual/reference/operator/query/text.txt&quot;</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="cmarrero01@gmail.com">Claudio Marrero</reporter>
                        <labels>
                            <label>collector-298ba4e7</label>
                    </labels>
                <created>Mon, 4 Aug 2014 19:08:19 +0000</created>
                <updated>Fri, 3 Nov 2017 11:17:57 +0000</updated>
                            <resolved>Mon, 4 Aug 2014 21:59:15 +0000</resolved>
                                                    <fixVersion>01112017-cleanup</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="681112" author="kay.kim@10gen.com" created="Mon, 4 Aug 2014 21:59:15 +0000"  >&lt;p&gt;Hi Claudio &amp;#8211;&lt;br/&gt;
thanks for taking the time to file this ticket with very clear examples.&lt;/p&gt;

&lt;p&gt;The text search matches on the *&lt;b&gt;complete stemmed&lt;/b&gt;* words. For example, if a document field contains the word &lt;tt&gt;blueberry&lt;/tt&gt;, a search on the term &lt;tt&gt;blue&lt;/tt&gt; will not match the document.&lt;/p&gt;

&lt;p&gt;So, for your example, I believe the complete stemmed word for &lt;tt&gt;textt&lt;/tt&gt; is &lt;tt&gt;textt&lt;/tt&gt; and the stemmed search term for &lt;tt&gt;text&lt;/tt&gt; is &lt;tt&gt;text&lt;/tt&gt; and since the match is on the complete stemmed word, the two will not match.&lt;/p&gt;

&lt;p&gt;For more information, refer to &lt;a href=&quot;http://docs.mongodb.org/manual/core/index-text/#text-search&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/core/index-text/#text-search&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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 4 Aug 2014 21:59:15 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 28 weeks, 2 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, 28 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>cmarrero01@gmail.com</customfieldvalue>
            <customfieldvalue>kay.kim@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrqvgf:</customfieldvalue>

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

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

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