<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:55:10 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-795] Geo with query doesn&apos;t return results if results are far away and limit isn&apos;t high</title>
                <link>https://jira.mongodb.org/browse/SERVER-795</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&amp;gt; db.people.find({ loc:{$near:{y:40.74,x:74}}, city:&apos;NEWARK&apos;}).count()&lt;br/&gt;
0&lt;br/&gt;
&amp;gt; db.people.find({ loc:{$near:{y:40.74,x:74}}, city:&apos;NEWARK&apos;}).limit(368).toArray().length&lt;br/&gt;
0&lt;br/&gt;
&amp;gt; db.people.find({ loc:{$near:{y:40.74,x:74}}, city:&apos;NEWARK&apos;}).limit(369).count()&lt;br/&gt;
0&lt;/p&gt;

&lt;p&gt;the $near location is in Manhattan &lt;/p&gt;</description>
                <environment></environment>
        <key id="11574">SERVER-795</key>
            <summary>Geo with query doesn&apos;t return results if results are far away and limit isn&apos;t high</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="9">Done</resolution>
                                        <assignee username="eliot">Eliot Horowitz</assignee>
                                    <reporter username="mathias@mongodb.com">Mathias Stearn</reporter>
                        <labels>
                    </labels>
                <created>Fri, 19 Mar 2010 19:19:45 +0000</created>
                <updated>Tue, 12 Jul 2016 00:27:21 +0000</updated>
                            <resolved>Mon, 22 Mar 2010 13:54:12 +0000</resolved>
                                                    <fixVersion>1.3.5</fixVersion>
                                    <component>Index Maintenance</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="13851" author="eliot" created="Mon, 26 Apr 2010 13:51:16 +0000"  >&lt;p&gt;in a release&lt;/p&gt;</comment>
                            <comment id="13141" author="auto" created="Mon, 22 Mar 2010 14:05:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: test for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-795&quot; title=&quot;Geo with query doesn&amp;#39;t return results if results are far away and limit isn&amp;#39;t high&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-795&quot;&gt;&lt;del&gt;SERVER-795&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/d74909dfc0a78fec4f650f692cd7665f2d46a3a5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/d74909dfc0a78fec4f650f692cd7665f2d46a3a5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="13135" author="auto" created="Mon, 22 Mar 2010 13:54:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: fix geo with limit with sparse results &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-795&quot; title=&quot;Geo with query doesn&amp;#39;t return results if results are far away and limit isn&amp;#39;t high&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-795&quot;&gt;&lt;del&gt;SERVER-795&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/6a27f13e5d26745b335408b200a5813819a418ec&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/6a27f13e5d26745b335408b200a5813819a418ec&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="13117" author="redbeard0531" created="Fri, 19 Mar 2010 21:19:46 +0000"  >&lt;p&gt;test case:&lt;/p&gt;

&lt;p&gt;&amp;gt; db.temp.drop()&lt;br/&gt;
true&lt;br/&gt;
&amp;gt; for (var i=0; i&amp;lt;100000; i++) db.temp.insert(&lt;/p&gt;
{loc:[100+Math.random(), 100+Math.random()], z:0}
&lt;p&gt;)&lt;br/&gt;
&amp;gt; for (var i=0; i&amp;lt;100000; i++) db.temp.insert(&lt;/p&gt;
{loc:[0+Math.random(), 0+Math.random()], z:1}
&lt;p&gt;)&lt;br/&gt;
&amp;gt; for (var i=0; i&amp;lt;100000; i++) db.temp.insert(&lt;/p&gt;
{loc:[-100+Math.random(), -100+Math.random()], z:2}
&lt;p&gt;)&lt;br/&gt;
&amp;gt; db.temp.ensureIndex(&lt;/p&gt;
{loc:&apos;2d&apos;}
&lt;p&gt;)&lt;br/&gt;
&amp;gt; db.temp.find({loc:{$near:&lt;span class=&quot;error&quot;&gt;&amp;#91;100,100&amp;#93;&lt;/span&gt;}, z:0}).limit(1) // looking at the right place&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4ba420f8aea776eb0349f5fb&quot;), &quot;loc&quot; : [ 100.00044369581227, 100.00137553042174 ], &quot;z&quot; : 0 }
&lt;p&gt;&amp;gt; db.temp.find({loc:{$near:&lt;span class=&quot;error&quot;&gt;&amp;#91;100,100&amp;#93;&lt;/span&gt;}, z:1}).limit(1) // looking for value near 0,0&lt;br/&gt;
&amp;gt; db.temp.find({loc:{$near:&lt;span class=&quot;error&quot;&gt;&amp;#91;100,100&amp;#93;&lt;/span&gt;}, z:1}).limit(2)&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4ba42135aea776eb034b7d67&quot;), &quot;loc&quot; : [ 0.9986111981839165, 0.9982225271724401 ], &quot;z&quot; : 1 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42135aea776eb034b5ef0&quot;), &quot;loc&quot; : [ 0.9983649024881919, 0.9975999943082721 ], &quot;z&quot; : 1 }
&lt;p&gt;&amp;gt; db.temp.find({loc:{$near:&lt;span class=&quot;error&quot;&gt;&amp;#91;100,100&amp;#93;&lt;/span&gt;}, z:2}).limit(2) // looking for value near -100,-100&lt;br/&gt;
&amp;gt; db.temp.find({loc:{$near:&lt;span class=&quot;error&quot;&gt;&amp;#91;100,100&amp;#93;&lt;/span&gt;}, z:2}).limit(10)&lt;br/&gt;
&amp;gt; db.temp.find({loc:{$near:&lt;span class=&quot;error&quot;&gt;&amp;#91;100,100&amp;#93;&lt;/span&gt;}, z:2}).limit(1000)&lt;br/&gt;
&amp;gt; db.temp.find({loc:{$near:&lt;span class=&quot;error&quot;&gt;&amp;#91;100,100&amp;#93;&lt;/span&gt;}, z:2}).limit(100000)&lt;br/&gt;
&amp;gt; db.temp.find({loc:{$near:&lt;span class=&quot;error&quot;&gt;&amp;#91;100,100&amp;#93;&lt;/span&gt;}, z:2}).limit(10000000)&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4ba42152aea776eb034ce325&quot;), &quot;loc&quot; : [ -99.0044038143625, -99.00276528062463 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42154aea776eb034d5079&quot;), &quot;loc&quot; : [ -99.00004697901932, -99.00724764759275 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42150aea776eb034c65a1&quot;), &quot;loc&quot; : [ -99.00340094000919, -99.00442751786046 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42151aea776eb034c8ff4&quot;), &quot;loc&quot; : [ -99.00303390340963, -99.00616623000317 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42152aea776eb034cbd89&quot;), &quot;loc&quot; : [ -99.00113233644916, -99.00997758210232 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42154aea776eb034d5a7b&quot;), &quot;loc&quot; : [ -99.00261081620683, -99.00860889548798 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42150aea776eb034c51b5&quot;), &quot;loc&quot; : [ -99.01030136617017, -99.0023052758157 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42150aea776eb034c61e0&quot;), &quot;loc&quot; : [ -99.00845150698072, -99.00502577423593 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42152aea776eb034ceb91&quot;), &quot;loc&quot; : [ -99.00918556748063, -99.00493494389337 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42154aea776eb034d7ee2&quot;), &quot;loc&quot; : [ -99.01044391158419, -99.00402419982002 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42154aea776eb034d705a&quot;), &quot;loc&quot; : [ -99.01420555480644, -99.00057518513223 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42151aea776eb034c7d3a&quot;), &quot;loc&quot; : [ -99.01540024864526, -99.00039293544691 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42150aea776eb034c339c&quot;), &quot;loc&quot; : [ -99.00931192985665, -99.00830653526737 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42152aea776eb034cbb66&quot;), &quot;loc&quot; : [ -99.0116846961002, -99.00649041663408 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42150aea776eb034c64a8&quot;), &quot;loc&quot; : [ -99.00204798277124, -99.01636040573327 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba4214faea776eb034c1e76&quot;), &quot;loc&quot; : [ -99.01523053704679, -99.0041634893516 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42150aea776eb034c63b9&quot;), &quot;loc&quot; : [ -99.01827296215806, -99.0012895288803 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42150aea776eb034c6a26&quot;), &quot;loc&quot; : [ -99.01765181245926, -99.00237173076631 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42151aea776eb034cb329&quot;), &quot;loc&quot; : [ -99.01121099488644, -99.00895698787542 ], &quot;z&quot; : 2 }
{ &quot;_id&quot; : ObjectId(&quot;4ba42153aea776eb034d2ad7&quot;), &quot;loc&quot; : [ -99.01258166523415, -99.00805880968434 ], &quot;z&quot; : 2 }
&lt;p&gt;has more&lt;br/&gt;
&amp;gt; &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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 22 Mar 2010 13:54:15 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 43 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpq4n:</customfieldvalue>

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

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

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