<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:59:50 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-2391] Cannot use compound of 2d and date value index</title>
                <link>https://jira.mongodb.org/browse/SERVER-2391</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Problem:&lt;br/&gt;
Can&apos;t seen to combine $within with additional predicate&lt;/p&gt;

&lt;p&gt;Reproduce:&lt;/p&gt;

&lt;p&gt;&amp;gt; db.testcol.find()&lt;br/&gt;
{ &quot;_id&quot; : &quot;1&quot;, &quot;title&quot; : &quot;Doc1&quot;, &quot;loc&quot; : &lt;/p&gt;
{ &quot;lat&quot; : 0, &quot;lng&quot; : 1 }
&lt;p&gt;, &quot;occurences&quot; : [&lt;br/&gt;
	&lt;/p&gt;
{
		&quot;instanceId&quot; : 1,
		&quot;startDate&quot; : ISODate(&quot;2001-01-23T03:00:00Z&quot;)
	}
&lt;p&gt;,&lt;/p&gt;
	{
		&quot;instanceId&quot; : 2,
		&quot;startDate&quot; : ISODate(&quot;2011-01-30T03:00:00Z&quot;)
	}
&lt;p&gt;] }&lt;br/&gt;
{ &quot;_id&quot; : &quot;2&quot;, &quot;title&quot; : &quot;Doc2&quot;, &quot;loc&quot; : &lt;/p&gt;
{ &quot;lat&quot; : 0, &quot;lng&quot; : 1 }
&lt;p&gt;, &quot;occurences&quot; : [&lt;br/&gt;
	&lt;/p&gt;
{
		&quot;instanceId&quot; : 1,
		&quot;startDate&quot; : ISODate(&quot;2011-01-24T03:00:00Z&quot;)
	}
&lt;p&gt;,&lt;/p&gt;
	{
		&quot;instanceId&quot; : 2,
		&quot;startDate&quot; : ISODate(&quot;2011-01-25T03:00:00Z&quot;)
	}
&lt;p&gt;] }&lt;/p&gt;

&lt;p&gt;This works&lt;/p&gt;

&lt;p&gt;&amp;gt; db.testcol.find({ &quot;loc&quot;: { &quot;$within&quot;:&lt;br/&gt;
... &lt;/p&gt;
{ &quot;$box&quot;: [ [ 0, 0 ], [ 1, 1 ] ] }
&lt;p&gt; } &lt;br/&gt;
... })&lt;br/&gt;
{ &quot;_id&quot; : &quot;1&quot;, &quot;title&quot; : &quot;Doc1&quot;, &quot;loc&quot; : &lt;/p&gt;
{ &quot;lat&quot; : 0, &quot;lng&quot; : 1 }
&lt;p&gt;, &quot;occurences&quot; : [&lt;br/&gt;
	&lt;/p&gt;
{
		&quot;instanceId&quot; : 1,
		&quot;startDate&quot; : ISODate(&quot;2001-01-23T03:00:00Z&quot;)
	}
&lt;p&gt;,&lt;/p&gt;
	{
		&quot;instanceId&quot; : 2,
		&quot;startDate&quot; : ISODate(&quot;2011-01-30T03:00:00Z&quot;)
	}
&lt;p&gt;] }&lt;br/&gt;
{ &quot;_id&quot; : &quot;2&quot;, &quot;title&quot; : &quot;Doc2&quot;, &quot;loc&quot; : &lt;/p&gt;
{ &quot;lat&quot; : 0, &quot;lng&quot; : 1 }
&lt;p&gt;, &quot;occurences&quot; : [&lt;br/&gt;
	&lt;/p&gt;
{
		&quot;instanceId&quot; : 1,
		&quot;startDate&quot; : ISODate(&quot;2011-01-24T03:00:00Z&quot;)
	}
&lt;p&gt;,&lt;/p&gt;
	{
		&quot;instanceId&quot; : 2,
		&quot;startDate&quot; : ISODate(&quot;2011-01-25T03:00:00Z&quot;)
	}
&lt;p&gt;] }&lt;/p&gt;

&lt;p&gt;However, restricting by occurences.startDate returns no documents&lt;/p&gt;

&lt;p&gt;&amp;gt; db.testcol.find({ &quot;loc&quot;: { &quot;$within&quot;: &lt;br/&gt;
... &lt;/p&gt;
{ &quot;$box&quot;: [ [ 0, 0 ], [ 1, 1 ] ] }
&lt;p&gt; }, &lt;br/&gt;
... &quot;occurences.startDate&quot;: &lt;br/&gt;
... { &quot;$gte&quot;: new Date(2011,0,23)}})&lt;/p&gt;

</description>
                <environment></environment>
        <key id="14276">SERVER-2391</key>
            <summary>Cannot use compound of 2d and date value index</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="greg_10gen">Greg Studer</assignee>
                                    <reporter username="alvin">Alvin Richards</reporter>
                        <labels>
                    </labels>
                <created>Fri, 21 Jan 2011 19:37:51 +0000</created>
                <updated>Mon, 24 Jan 2011 22:42:38 +0000</updated>
                            <resolved>Mon, 24 Jan 2011 20:33:44 +0000</resolved>
                                    <version>1.7.4</version>
                                                    <component>Geo</component>
                                        <votes>2</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="22628" author="greg_10gen" created="Mon, 24 Jan 2011 20:33:44 +0000"  >&lt;p&gt;Also geoindex and multi-key issue.  &lt;/p&gt;</comment>
                            <comment id="22627" author="greg_10gen" created="Mon, 24 Jan 2011 20:31:17 +0000"  >&lt;p&gt;Same issue as &lt;a href=&quot;http://jira.mongodb.org/browse/SERVER-2381&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;http://jira.mongodb.org/browse/SERVER-2381&lt;/a&gt;, not date-related.  Should be fixed by the same improvement.  &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="14259">SERVER-2381</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>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, 24 Jan 2011 20:31:17 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 4 weeks, 2 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>alvin</customfieldvalue>
            <customfieldvalue>greg_10gen</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp853:</customfieldvalue>

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

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

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