<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:46:41 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-3865] Comment on: &quot;manual/core/index-text.txt&quot;</title>
                <link>https://jira.mongodb.org/browse/DOCS-3865</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;I have reported an error previously here: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-3863&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/DOCS-3863&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Key kim close the ticket saying me this:&lt;/p&gt;

&lt;p&gt;Hi Claudio &#8211;&lt;br/&gt;
thanks for taking the time to file this ticket with very clear examples.&lt;br/&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 blueberry, a search on the term blue will not match the document.&lt;br/&gt;
So, for your example, I believe the complete stemmed word for textt is textt and the stemmed search term for text is text and since the match is on the complete stemmed word, the two will not match.&lt;br/&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;

&lt;p&gt;The things, Key Kim is wrong.. &lt;/p&gt;

&lt;p&gt;In mongodb 2.6.3 you can search a word, for example, if you have the following documents:&lt;/p&gt;

&lt;p&gt;db.foo.find({});&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;53dfd9453e1e4201402d2f5b&quot;), &quot;desc&quot; : &quot;This is a bug textt&quot; }
{ &quot;_id&quot; : ObjectId(&quot;53dfd9453e1e4201402d2f5b&quot;), &quot;desc&quot; : &quot;Text&quot; }
{ &quot;_id&quot; : ObjectId(&quot;53dfd9453e1e4201402d2f5b&quot;), &quot;desc&quot; : &quot;I wrote a text&quot; }
{ &quot;_id&quot; : ObjectId(&quot;53dfd9453e1e4201402d2f5d&quot;), &quot;desc&quot; : &quot;This is a string with text&quot; }

&lt;p&gt;and you have a &quot;text&quot; index for desc&lt;/p&gt;

&lt;p&gt;db.foo.ensureIndex(&lt;/p&gt;
{&quot;desc&quot;:&quot;text&quot;}
&lt;p&gt;);&lt;/p&gt;

&lt;p&gt;And you make this query finding text:&lt;/p&gt;

&lt;p&gt;db.foo.find({$text:{ $search:&quot;text&quot; }});&lt;/p&gt;

&lt;p&gt;You will get:&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;53dfd9453e1e4201402d2f5b&quot;), &quot;desc&quot; : &quot;Text&quot; }
{ &quot;_id&quot; : ObjectId(&quot;53dfd9453e1e4201402d2f5b&quot;), &quot;desc&quot; : &quot;I wrote a text&quot; }
{ &quot;_id&quot; : ObjectId(&quot;53dfd9453e1e4201402d2f5d&quot;), &quot;desc&quot; : &quot;This is a string with text&quot; }

&lt;p&gt;Notice that the document:&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;53dfd9453e1e4201402d2f5b&quot;), &quot;desc&quot; : &quot;This is a bug textt&quot; }

&lt;p&gt;has not been received.&lt;/p&gt;

&lt;p&gt;I try this with the fallowing cases..&lt;/p&gt;

&lt;p&gt;I added many documents with this text string into a differents phrases.. &lt;/p&gt;

&lt;p&gt;walk &amp;#8212; walkk&lt;br/&gt;
text ----- textt&lt;br/&gt;
hello &amp;#8212; helloo&lt;br/&gt;
name &amp;#8211; namee&lt;/p&gt;

&lt;p&gt;I thing the bug here is the double character in the end fo the key string or somelike that.&lt;/p&gt;

&lt;p&gt;I don&apos;t know for what reason Kim told me that this can&apos;t be done with mongo, I make all this querys on shell of mongo 2.6.3,&lt;/p&gt;

&lt;p&gt;Best&lt;br/&gt;
C&lt;/p&gt;

&lt;p&gt;PD: For more details I found this ticket: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-380&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-380&lt;/a&gt; where Jason Rassi says that the feature has been deployed in version of 2.6.3&lt;/p&gt;

&lt;p&gt;PD: And sorry for my english.&lt;/p&gt;

</description>
                <environment>Windows 7, Linux 14.10, Linux 12.10&lt;br/&gt;
&lt;br/&gt;
*Location*: &lt;a href=&quot;http://docs.mongodb.org/manual/core/index-text/#text-search&quot;&gt;http://docs.mongodb.org/manual/core/index-text/#text-search&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;
*Screen Resolution*: 1920 x 1080&lt;br/&gt;
*repo*: docs&lt;br/&gt;
*source*: core/index-text&lt;br/&gt;
</environment>
        <key id="150807">DOCS-3865</key>
            <summary>Comment on: &quot;manual/core/index-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 22:22:18 +0000</created>
                <updated>Fri, 3 Nov 2017 11:21:12 +0000</updated>
                            <resolved>Mon, 4 Aug 2014 22:54:43 +0000</resolved>
                                                    <fixVersion>01112017-cleanup</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="681182" author="kay.kim@10gen.com" created="Mon, 4 Aug 2014 23:14:00 +0000"  >&lt;p&gt;Just one more thing that might clarify:&lt;/p&gt;

&lt;p&gt;When I state that &lt;br/&gt;
&lt;tt&gt;The text search matches on the complete stemmed words.&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;What I mean is if we have a string &lt;tt&gt;desc: &quot;Night fell early&quot;&lt;/tt&gt; , then the stemmer stems each term in the sentence to 3 separate stemmed words &lt;tt&gt;night&lt;/tt&gt;, &lt;tt&gt;fell&lt;/tt&gt;, &lt;tt&gt;early&lt;/tt&gt;  and this allows for you to search on any of the three stemmed terms.  Text search is case insensitive which is why I had it &lt;tt&gt;night&lt;/tt&gt; instead of &lt;tt&gt;Night&lt;/tt&gt; but I could have easily typed &lt;tt&gt;Night&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Hope this clarifies a bit.&lt;/p&gt;</comment>
                            <comment id="681167" author="kay.kim@10gen.com" created="Mon, 4 Aug 2014 22:54:43 +0000"  >&lt;p&gt;Hi Claudio &amp;#8211; &lt;/p&gt;

&lt;p&gt;There seems to be some confusion regarding &lt;b&gt;stemmed&lt;/b&gt; words. Stemming uses various suffix matching logic to stem words.&lt;/p&gt;

&lt;p&gt;If I have the following documents:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{ &quot;_id&quot; : 8, &quot;desc&quot; : &quot;This is an correct texts.&quot; }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{ &quot;_id&quot; : 2, &quot;desc&quot; : &quot;This is also correct texting.&quot; }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{ &quot;_id&quot; : 7, &quot;desc&quot; : &quot;This is an correct texted.&quot; }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{ &quot;_id&quot; : 12, &quot;desc&quot; : &quot;This is a correct text.&quot; }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{ &quot;_id&quot; : 3, &quot;desc&quot; : &quot;This is an incorrect texte.&quot; }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;The stemming logic recognizes certain suffixes and as such stems &lt;tt&gt;&quot;texts&quot;, &quot;texting&quot;, &quot;texted&quot;, &quot;text&quot;, &quot;texte&quot;&lt;/tt&gt; to &lt;tt&gt;text&lt;/tt&gt;. So, these documents will return if I do a text search on a term that also stems to &lt;tt&gt;text&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;For example, &lt;tt&gt;&quot;texting&quot;&lt;/tt&gt; also stems to &lt;tt&gt;text&lt;/tt&gt;, so&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.foo.find( { $text: { $search: &quot;texting&quot; } } )&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;will match the above documents.&lt;/p&gt;

&lt;p&gt;However, &lt;tt&gt;&quot;tex&quot;&lt;/tt&gt; stems to &lt;tt&gt;tex&lt;/tt&gt;, so it will &lt;b&gt;not&lt;/b&gt; match any of the above documents.&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.foo.find( { $text: { $search: &quot;tex&quot; } } )&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;In your example, the stemmer doesn&apos;t know how to stem &lt;tt&gt;&quot;textt&quot;&lt;/tt&gt; and as such, the stemmed version of &lt;tt&gt;&quot;textt&quot;&lt;/tt&gt; is &lt;tt&gt;&quot;textt&lt;/tt&gt;.  So, &lt;tt&gt;&quot;text&quot;&lt;/tt&gt; will not match &lt;tt&gt;&quot;textt&quot;&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;As a side note, the stemmer stems &lt;tt&gt;&quot;textting&lt;/tt&gt; to &lt;tt&gt;&quot;text&quot;&lt;/tt&gt; and thus will match &lt;tt&gt;&quot;text&quot;&lt;/tt&gt; but &lt;b&gt;not&lt;/b&gt; &lt;tt&gt;&quot;textt&quot;&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Hope this helps.&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>2.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 22:54:43 +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|hrqvfj:</customfieldvalue>

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

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

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