<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:00:54 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>[SERVER-2689] Inconsistent behavior when combining $all with other operators</title>
                <link>https://jira.mongodb.org/browse/SERVER-2689</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When $all is combined with other operators (ie: $in, $gt, $lt), the results are not the expected.&lt;/p&gt;

&lt;p&gt;Example:&lt;br/&gt;
Having these 9 documents:&lt;/p&gt;
{ n: 1, x: [&quot;a&quot;,&quot;a&quot;] }
{ n: 2, x: [&quot;a&quot;,&quot;b&quot;] }
{ n: 3, x: [&quot;a&quot;,&quot;c&quot;] }
{ n: 4, x: [&quot;b&quot;,&quot;a&quot;] }
{ n: 5, x: [&quot;b&quot;,&quot;b&quot;] }
{ n: 6, x: [&quot;b&quot;,&quot;c&quot;] }
{ n: 7, x: [&quot;c&quot;,&quot;a&quot;] }
{ n: 8, x: [&quot;c&quot;,&quot;b&quot;] }
{ n: 9, x: [&quot;c&quot;,&quot;c&quot;] }

&lt;p&gt;&amp;gt; db.x.find({x:{ $in: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;a&amp;quot;,&amp;quot;b&amp;quot;&amp;#93;&lt;/span&gt; }}); return all the documents&lt;br/&gt;
having &quot;a&quot; or &quot;b&quot; as values of the x array - 8 documents (just&lt;br/&gt;
the 9th document is excluded).&lt;/p&gt;

&lt;p&gt;&amp;gt; db.x.find({x:{ $all: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;c&amp;quot;&amp;#93;&lt;/span&gt; }}); return all the documents&lt;br/&gt;
having &quot;c&quot; as value of the x array, - 5 documents (the 3, 6, 7,&lt;br/&gt;
8 and 9).&lt;/p&gt;

&lt;p&gt;&amp;gt; db.x.find({x:{ $in: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;a&amp;quot;,&amp;quot;b&amp;quot;&amp;#93;&lt;/span&gt;, $all: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;c&amp;quot;&amp;#93;&lt;/span&gt; }}); should return all the documents having &quot;a&quot; or &quot;b&quot; as values and having &quot;c&quot; as value (the 3, 6, 7 and 8) - the intersection of both queries. Instead, return nothing.&lt;/p&gt;

&lt;p&gt;mongodb-user theread: &lt;a href=&quot;http://groups.google.com/group/mongodb-user/browse_thread/thread/4033cd8335f7261e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://groups.google.com/group/mongodb-user/browse_thread/thread/4033cd8335f7261e&lt;/a&gt;&lt;/p&gt;</description>
                <environment>Linux 32bit, MongoDB 1.6.5</environment>
        <key id="15010">SERVER-2689</key>
            <summary>Inconsistent behavior when combining $all with other operators</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="doliveira">David Oliveira</reporter>
                        <labels>
                    </labels>
                <created>Sun, 6 Mar 2011 11:55:31 +0000</created>
                <updated>Fri, 15 Feb 2013 15:06:06 +0000</updated>
                            <resolved>Sun, 25 Nov 2012 19:03:25 +0000</resolved>
                                    <version>1.6.5</version>
                                                    <component>Index Maintenance</component>
                    <component>Querying</component>
                                        <votes>3</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="128840" author="doliveira" created="Fri, 8 Jun 2012 18:12:43 +0000"  >&lt;p&gt;2.0.6 seems to not have this issue. Fixed.&lt;/p&gt;</comment>
                            <comment id="128818" author="weyrick" created="Fri, 8 Jun 2012 17:36:08 +0000"  >&lt;p&gt;FYI, this appears fixed as of at least 2.1.2-pre. Test case attached.&lt;/p&gt;</comment>
                            <comment id="34500" author="eliot" created="Thu, 26 May 2011 05:58:13 +0000"  >&lt;p&gt;Not specifically.&lt;br/&gt;
its on the short list of things to do, but not slotted yet.&lt;/p&gt;</comment>
                            <comment id="34327" author="sschleicher" created="Wed, 25 May 2011 14:41:20 +0000"  >&lt;p&gt;do you already have an idea, when this bug will get fixed? I&apos;m stucked at a project at this specific point...&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="13832">SERVER-2165</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="17103" name="SERVER-2689.js" size="502" author="weyrick" created="Fri, 8 Jun 2012 17:36:40 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</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, 25 May 2011 14:41:20 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 36 weeks, 5 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 36 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>doliveira</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>sschleicher</customfieldvalue>
            <customfieldvalue>weyrick</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp4in:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>20515</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht07cf:</customfieldvalue>

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