<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:02:21 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-3192] allow nesting $or within $and</title>
                <link>https://jira.mongodb.org/browse/SERVER-3192</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description></description>
                <environment></environment>
        <key id="17883">SERVER-3192</key>
            <summary>allow nesting $or within $and</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="aaron">Aaron Staple</assignee>
                                    <reporter username="aaron">Aaron Staple</reporter>
                        <labels>
                    </labels>
                <created>Fri, 3 Jun 2011 20:13:56 +0000</created>
                <updated>Tue, 14 Nov 2017 15:46:36 +0000</updated>
                            <resolved>Fri, 24 Jun 2011 13:49:37 +0000</resolved>
                                                    <fixVersion>1.9.1</fixVersion>
                                    <component>Index Maintenance</component>
                    <component>Querying</component>
                                        <votes>10</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="39063" author="aaron" created="Fri, 24 Jun 2011 13:49:37 +0000"  >&lt;p&gt;We&apos;ve added in matching for nested or clauses, but not index support.  Index support is &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3327&quot; title=&quot;use indexes for nested $or clauses&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3327&quot;&gt;&lt;del&gt;SERVER-3327&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="38918" author="tdemille" created="Thu, 23 Jun 2011 18:09:11 +0000"  >&lt;p&gt;I&apos;m very hopeful this would include ability for multiple $OR?     We are running into major issue implementing MongoDB for searches without multiple $or, for instance..&lt;/p&gt;

&lt;p&gt;query =  {   $or: [ &lt;/p&gt;
{ IsBankOwned: true }
&lt;p&gt;, &lt;/p&gt;
{ IsShortSale: true }
&lt;p&gt;, &lt;/p&gt;
{ IsHUD: true }
&lt;p&gt; ], $or: [ &lt;/p&gt;
{ AreaID: &quot;2467&quot; }
&lt;p&gt;,{ CityID: { $in: [  &quot;4651&quot; ] }} ] }&lt;/p&gt;

&lt;p&gt;does not currently work so we can not use this for our search for real estate MLS where the search might be (as above)    in this area OR that city AND IsBankOwned OR isShortSale&lt;/p&gt;

&lt;p&gt;the work around is to pull back a huge dataset and use code to parse out one of the OR elements.&lt;/p&gt;

&lt;p&gt;Thnks!  &lt;/p&gt;</comment>
                            <comment id="37787" author="auto" created="Thu, 16 Jun 2011 04:10:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;astaple&apos;, u&apos;name&apos;: u&apos;Aaron&apos;, u&apos;email&apos;: u&apos;aaron@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3192&quot; title=&quot;allow nesting $or within $and&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3192&quot;&gt;&lt;del&gt;SERVER-3192&lt;/del&gt;&lt;/a&gt; a few more test cases&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/666397744ecbcfd1237ffe1dd454e1502ab3f60b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/666397744ecbcfd1237ffe1dd454e1502ab3f60b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="37786" author="auto" created="Thu, 16 Jun 2011 04:10:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;astaple&apos;, u&apos;name&apos;: u&apos;Aaron&apos;, u&apos;email&apos;: u&apos;aaron@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3192&quot; title=&quot;allow nesting $or within $and&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3192&quot;&gt;&lt;del&gt;SERVER-3192&lt;/del&gt;&lt;/a&gt; a few more test cases&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6646b9024f755ea666b5e9a5660e6c55d3705a3a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6646b9024f755ea666b5e9a5660e6c55d3705a3a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="37784" author="auto" created="Thu, 16 Jun 2011 04:10:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;astaple&apos;, u&apos;name&apos;: u&apos;Aaron&apos;, u&apos;email&apos;: u&apos;aaron@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3192&quot; title=&quot;allow nesting $or within $and&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3192&quot;&gt;&lt;del&gt;SERVER-3192&lt;/del&gt;&lt;/a&gt; a few more test cases&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0956da450ca059cbee3a98c12e28aa67c6abaed7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0956da450ca059cbee3a98c12e28aa67c6abaed7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="37783" author="auto" created="Thu, 16 Jun 2011 04:10:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;astaple&apos;, u&apos;name&apos;: u&apos;Aaron&apos;, u&apos;email&apos;: u&apos;aaron@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3192&quot; title=&quot;allow nesting $or within $and&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3192&quot;&gt;&lt;del&gt;SERVER-3192&lt;/del&gt;&lt;/a&gt; require atomic specifier to be top level&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fc3f8343201cabcc1a5c99b7f6a12f5c25647b9b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fc3f8343201cabcc1a5c99b7f6a12f5c25647b9b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="37781" author="auto" created="Thu, 16 Jun 2011 04:10:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;astaple&apos;, u&apos;name&apos;: u&apos;Aaron&apos;, u&apos;email&apos;: u&apos;aaron@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3192&quot; title=&quot;allow nesting $or within $and&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3192&quot;&gt;&lt;del&gt;SERVER-3192&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2585&quot; title=&quot;Allow nested $or operator&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2585&quot;&gt;&lt;del&gt;SERVER-2585&lt;/del&gt;&lt;/a&gt; allow nested or clauses in queries, opaque to indexing system&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0b32ad4e6d5629525001add932fe78ba517cb503&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0b32ad4e6d5629525001add932fe78ba517cb503&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="36491" author="aaron" created="Tue, 7 Jun 2011 02:13:50 +0000"  >&lt;p&gt;We are planning to implement a useful portion of this functionality for 1.9.1&lt;/p&gt;</comment>
                            <comment id="36101" author="jyrinx" created="Fri, 3 Jun 2011 23:31:55 +0000"  >&lt;p&gt;I just want to emphasize: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1089&quot; title=&quot;$and operator&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1089&quot;&gt;&lt;del&gt;SERVER-1089&lt;/del&gt;&lt;/a&gt; is very important to my project, but without this ability it&apos;s meaningless. In fact, it&apos;s difficult for me to construct examples where $and is necessary but nested $or is not; the best I can think of would be regular expressions, and using $and there is just a workaround for a shortcoming in the regular expression language (many regex engines support &amp;amp; as an operator).&lt;/p&gt;

&lt;p&gt;So for us, and I&apos;d have to guess for 99% of people who cared about &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1089&quot; title=&quot;$and operator&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1089&quot;&gt;&lt;del&gt;SERVER-1089&lt;/del&gt;&lt;/a&gt;, this is just as important and just as sorely needed.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="14802">SERVER-2585</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="11902">SERVER-1089</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="11902">SERVER-1089</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="18675">SERVER-3327</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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>Fri, 3 Jun 2011 23:31:55 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 34 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-2585'>SERVER-2585</a></s>]]></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>bernie@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 34 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>aaron</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>jyrinx</customfieldvalue>
            <customfieldvalue>tdemille</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroyov:</customfieldvalue>

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

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

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