<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:00:25 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-10382] Clarify if MongoDB text search is correct in manual or not</title>
                <link>https://jira.mongodb.org/browse/DOCS-10382</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;According to the manual (&lt;a href=&quot;https://docs.mongodb.com/manual/text-search/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/text-search/&lt;/a&gt;),&lt;br/&gt;
 Below text search will find all documents containing &#8220;java&#8221; or &#8220;coffee shop&#8221;, &lt;br/&gt;
 But in the result all documents containing only &quot;java&quot; are excluded. This text search return documents containing only &quot;coffee shop&quot;.&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.stores.find( { $text: { $search: &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;java \&quot;coffee shop\&quot;&quot;&lt;/span&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; } } )&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;I am not sure whether manual is correct or not. Anyway manual and MongoDB result are not matched.&lt;/p&gt;</description>
                <environment>&lt;a href=&quot;https://docs.mongodb.com/manual/text-search/&quot;&gt;https://docs.mongodb.com/manual/text-search/&lt;/a&gt;</environment>
        <key id="392594">DOCS-10382</key>
            <summary>Clarify if MongoDB text search is correct in manual or not</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="13201">Fixed</resolution>
                                        <assignee username="stephen.steneker@mongodb.com">Stennie Steneker</assignee>
                                    <reporter username="sunguck.lee@gmail.com">&#50500;&#45208; &#54616;&#47532;</reporter>
                        <labels>
                    </labels>
                <created>Sun, 11 Jun 2017 13:31:02 +0000</created>
                <updated>Mon, 30 Oct 2023 21:10:46 +0000</updated>
                            <resolved>Tue, 22 Jan 2019 05:05:57 +0000</resolved>
                                                    <fixVersion>Server_Docs_20231030</fixVersion>
                                    <component>manual</component>
                    <component>Server</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="2122300" author="xgen-internal-githook" created="Tue, 22 Jan 2019 04:39:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;stennie@cpan.org&apos;, &apos;name&apos;: &apos;Stephen Steneker&apos;, &apos;username&apos;: &apos;stennie&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-10382&quot; title=&quot;Clarify if MongoDB text search is correct in manual or not&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-10382&quot;&gt;&lt;del&gt;DOCS-10382&lt;/del&gt;&lt;/a&gt;: Clarify text search phrase matching behaviour&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/aecde5c6636f559b11b9c8d129dfa087caa6b7ca&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/aecde5c6636f559b11b9c8d129dfa087caa6b7ca&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2122298" author="xgen-internal-githook" created="Tue, 22 Jan 2019 04:39:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;stennie&apos;, &apos;email&apos;: &apos;stennie@cpan.org&apos;, &apos;name&apos;: &apos;Stephen Steneker&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-10382&quot; title=&quot;Clarify if MongoDB text search is correct in manual or not&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-10382&quot;&gt;&lt;del&gt;DOCS-10382&lt;/del&gt;&lt;/a&gt;: Clarify text search phrase matching behaviour&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/73cf6de7f5553342f56e859ceaef117c199c2516&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/73cf6de7f5553342f56e859ceaef117c199c2516&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2122296" author="xgen-internal-githook" created="Tue, 22 Jan 2019 04:38:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;stennie@cpan.org&apos;, &apos;name&apos;: &apos;Stephen Steneker&apos;, &apos;username&apos;: &apos;stennie&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-10382&quot; title=&quot;Clarify if MongoDB text search is correct in manual or not&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-10382&quot;&gt;&lt;del&gt;DOCS-10382&lt;/del&gt;&lt;/a&gt;: Clarify text search phrase matching behaviour&lt;br/&gt;
Branch: v3.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/71ed40fff6dbb5498dc165cb6ffb8b25c907c3b4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/71ed40fff6dbb5498dc165cb6ffb8b25c907c3b4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2122294" author="xgen-internal-githook" created="Tue, 22 Jan 2019 04:38:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;stennie@cpan.org&apos;, &apos;name&apos;: &apos;Stephen Steneker&apos;, &apos;username&apos;: &apos;stennie&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-10382&quot; title=&quot;Clarify if MongoDB text search is correct in manual or not&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-10382&quot;&gt;&lt;del&gt;DOCS-10382&lt;/del&gt;&lt;/a&gt;: Clarify text search phrase matching behaviour&lt;br/&gt;
Branch: v4.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/4d47ff3c85a392469eba4fc19c95afa759a45f6b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/4d47ff3c85a392469eba4fc19c95afa759a45f6b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2122292" author="xgen-internal-githook" created="Tue, 22 Jan 2019 04:37:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;username&apos;: &apos;stennie&apos;, &apos;email&apos;: &apos;stennie@cpan.org&apos;, &apos;name&apos;: &apos;Stephen Steneker&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-10382&quot; title=&quot;Clarify if MongoDB text search is correct in manual or not&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-10382&quot;&gt;&lt;del&gt;DOCS-10382&lt;/del&gt;&lt;/a&gt;: Clarify text search phrase matching behaviour&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/db570540c90210e19b8f7402937e4af4439d9414&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/db570540c90210e19b8f7402937e4af4439d9414&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1594654" author="mark.agarunov" created="Mon, 12 Jun 2017 18:08:10 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=david.storch&quot; class=&quot;user-hover&quot; rel=&quot;david.storch&quot;&gt;david.storch&lt;/a&gt;, According to other parts of the documentation, which Thomas linked, as well as previous tickets requesting a way to perform an exact phrase search with OR instead of AND (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-22583&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-22583&lt;/a&gt;), I concluded that the behavior is intentional, therefore documentation is incorrect. Additionally, my assumption would be that the phrase must be present in the document to be returned when searching for an exact phrase.&lt;/p&gt;</comment>
                            <comment id="1594620" author="david.storch" created="Mon, 12 Jun 2017 17:51:19 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mark.agarunov&quot; class=&quot;user-hover&quot; rel=&quot;mark.agarunov&quot;&gt;mark.agarunov&lt;/a&gt;, how did you conclude that this behavior is a documentation bug and not a server bug? When I saw this report I was concerned that the original reporter had found a server bug. I&apos;ll try to spend a few minutes digging into the code later in order to try and decide whether this was intentional or not.&lt;/p&gt;

&lt;p&gt;EDIT: Oh, I think I see now. This phrase search query means &quot;coffee shop&quot; AND (&quot;java&quot; OR &quot;coffee&quot; OR &quot;shop&quot;). Given this meaning, it appears that the text search engine is functioning as designed. I was surprised to learn that this query does not mean &quot;coffee shop&quot; AND &quot;java&quot;.&lt;/p&gt;</comment>
                            <comment id="1594598" author="thomas.schubert" created="Mon, 12 Jun 2017 17:34:11 +0000"  >&lt;p&gt;For reference, underlying logic is correctly documented here: &lt;a href=&quot;https://docs.mongodb.com/manual/reference/operator/query/text/#phrases&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/operator/query/text/#phrases&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1594574" author="mark.agarunov" created="Mon, 12 Jun 2017 17:19:44 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=matt.lee&quot; class=&quot;user-hover&quot; rel=&quot;matt.lee&quot;&gt;matt.lee&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for the report. I&apos;ve been able to reproduce the behavior you&apos;ve described and agree that it does not match the &lt;a href=&quot;https://docs.mongodb.com/manual/text-search/#exact-phrase&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;behavior as documented&lt;/a&gt;:&lt;/p&gt;


&lt;div class=&quot;panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;Exact Phrase&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot;&gt;
&lt;p&gt;You can also search for exact phrases by wrapping them in double-quotes. For example, the following will find all documents containing &#8220;java&#8221; or &#8220;coffee shop&#8221;:&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;ve moved this ticket to the DOCS project so that the documentation can be updated to reflect the actual behavior.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Mark&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="394346">DOCS-10396</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="529465">DOCS-11632</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="404366">SERVER-30163</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 12 Jun 2017 17:19:44 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 3 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>DOCSP-1769</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10040" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Estimate</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10042"><![CDATA[Small]]></customfieldvalue>

                        </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>
                            5 years, 3 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>david.storch@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>mark.agarunov</customfieldvalue>
            <customfieldvalue>stephen.steneker@mongodb.com</customfieldvalue>
            <customfieldvalue>sunguck.lee@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht8ypb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht107b:</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_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.2</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|ht8krr:</customfieldvalue>

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