<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:02:03 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-23000] mongodb 3.2:2d index return all document by default in &quot;Proximity to a Point on a Flat Surface&quot; ,not 100 as descripted in manual </title>
                <link>https://jira.mongodb.org/browse/SERVER-23000</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I use 2-d index to match in player collection as follows&lt;/p&gt;

&lt;p&gt;db.player.find({&apos;match_lv&apos;:{&apos;$near&apos;:&lt;span class=&quot;error&quot;&gt;&amp;#91;1,0&amp;#93;&lt;/span&gt;}}).count();&lt;/p&gt;

&lt;p&gt;However, in mongodb 3.2, it return all documents not 100 document by default.&lt;br/&gt;
Btw, in mongodb 2.6, it return 100 document indeed and in mongodb3.0, it return all documents&lt;/p&gt;

&lt;p&gt;I guess there is something wrong in mongdb 3.0 and mongodb 3.2 in 2-d index, because it conflict with manual&lt;/p&gt;</description>
                <environment></environment>
        <key id="270702">SERVER-23000</key>
            <summary>mongodb 3.2:2d index return all document by default in &quot;Proximity to a Point on a Flat Surface&quot; ,not 100 as descripted in manual </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="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="jiawenjie">jiawenjie</reporter>
                        <labels>
                    </labels>
                <created>Tue, 8 Mar 2016 08:09:33 +0000</created>
                <updated>Mon, 14 Mar 2016 14:51:46 +0000</updated>
                            <resolved>Fri, 11 Mar 2016 21:51:06 +0000</resolved>
                                    <version>3.0.3</version>
                    <version>3.2.0</version>
                                                    <component>Geo</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1202353" author="thomas.schubert" created="Mon, 14 Mar 2016 14:51:46 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jiawenjie&quot; class=&quot;user-hover&quot; rel=&quot;jiawenjie&quot;&gt;jiawenjie&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for pointing me to the documentation you were referencing. I have opened &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-7405&quot; title=&quot;Proximity queries do not return 100 legacy coordinate pairs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-7405&quot;&gt;&lt;del&gt;DOCS-7405&lt;/del&gt;&lt;/a&gt; to update this page according to our discussion. Please feel free to watch &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-7405&quot; title=&quot;Proximity queries do not return 100 legacy coordinate pairs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-7405&quot;&gt;&lt;del&gt;DOCS-7405&lt;/del&gt;&lt;/a&gt; and vote for it.&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1201541" author="jiawenjie" created="Sat, 12 Mar 2016 13:55:27 +0000"  >&lt;p&gt;Hi,Thomas Schubert &lt;br/&gt;
Thanks for your reply and your suggestions. &lt;br/&gt;
In addtion, Actually I am referencing the latest document which states as follows: &quot;Proximity queries return the 100 legacy coordinate pairs closest to the defined point and sort the results by distance&quot;. Here is the link: &lt;a href=&quot;https://docs.mongodb.org/manual/tutorial/query-a-2d-index/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.org/manual/tutorial/query-a-2d-index/&lt;/a&gt;. So I just guess I misunderstand the document or there is something wrong in the latest document as mentioned above?&lt;br/&gt;
kind regards&lt;/p&gt;


&lt;p&gt;Jia&lt;/p&gt;





&lt;p&gt;------------------ &#21407;&#22987;&#37038;&#20214; ------------------&lt;br/&gt;
&#21457;&#20214;&#20154;: &quot;Thomas Schubert (JIRA)&quot;;&amp;lt;jira@mongodb.org&amp;gt;;&lt;br/&gt;
&#21457;&#36865;&#26102;&#38388;: 2016&#24180;3&#26376;12&#26085;(&#26143;&#26399;&#20845;) &#20940;&#26216;5:51&lt;br/&gt;
&#25910;&#20214;&#20154;: &quot;&#25991;&#26480;&quot;&amp;lt;514120001@qq.com&amp;gt;; &lt;/p&gt;

&lt;p&gt;&#20027;&#39064;: &lt;span class=&quot;error&quot;&gt;&amp;#91;MongoDB-JIRA&amp;#93;&lt;/span&gt; (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23000&quot; title=&quot;mongodb 3.2:2d index return all document by default in &amp;quot;Proximity to a Point on a Flat Surface&amp;quot; ,not 100 as descripted in manual &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23000&quot;&gt;&lt;del&gt;SERVER-23000&lt;/del&gt;&lt;/a&gt;) mongodb 3.2:2d index return alldocument by default in &quot;Proximity to a Point on a Flat Surface&quot; ,not 100 asdescripted in manual&lt;/p&gt;




&lt;p&gt;     [ &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-23000?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt; ]&lt;/p&gt;

&lt;p&gt;Thomas Schubert closed &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23000&quot; title=&quot;mongodb 3.2:2d index return all document by default in &amp;quot;Proximity to a Point on a Flat Surface&amp;quot; ,not 100 as descripted in manual &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23000&quot;&gt;&lt;del&gt;SERVER-23000&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
------------------------------------&lt;br/&gt;
    Fix Version/s:     (was: debugging with submitter)&lt;br/&gt;
       Resolution: Works as Designed&lt;/p&gt;

&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jiawenjie&quot; class=&quot;user-hover&quot; rel=&quot;jiawenjie&quot;&gt;jiawenjie&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for reporting this behavior. I believe you are referencing the &lt;a href=&quot;https://docs.mongodb.org/v2.6/reference/operator/query/near/#d-index&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;2.6 documentation&lt;/a&gt; which states that the $near queries that use a 2d index will return a limit of 100 documents. &lt;/p&gt;

&lt;p&gt;In MongoDB 3.0, this &lt;a href=&quot;https://docs.mongodb.org/manual/release-notes/3.0-compatibility/#geo-near-compatibility&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;limit is no longer used&lt;/a&gt; and our &lt;a href=&quot;https://docs.mongodb.org/manual/reference/operator/query/near/#behavior&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;latest documentation&lt;/a&gt; does not mention this restriction. Please use &lt;a href=&quot;https://docs.mongodb.org/manual/reference/method/cursor.limit/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;limit()&lt;/a&gt; If you would like to limit the number of results.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Thomas&lt;/p&gt;


&lt;p&gt;----------------------&lt;br/&gt;
This message was sent from MongoDB&apos;s issue tracking system. To respond to this ticket, please login to &lt;a href=&quot;https://jira.mongodb.org&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org&lt;/a&gt; using your JIRA or MMS credentials.&lt;/p&gt;</comment>
                            <comment id="1201540" author="jiawenjie" created="Sat, 12 Mar 2016 13:53:20 +0000"  >&lt;p&gt;Hi,Thomas Schubert &lt;br/&gt;
  Thanks for your reply and your suggestions. &lt;br/&gt;
  In addtion, Actually I am referencing the latest document which states as follows:  &quot;Proximity queries return the 100 legacy coordinate pairs closest to the defined point and sort the results by distance&quot;. Here is the link: &lt;a href=&quot;https://docs.mongodb.org/manual/tutorial/query-a-2d-index/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.org/manual/tutorial/query-a-2d-index/&lt;/a&gt;.  So I just guess I misunderstand the document or there is something wrong in the latest document as mentioned above? &lt;/p&gt;</comment>
                            <comment id="1201242" author="thomas.schubert" created="Fri, 11 Mar 2016 21:51:06 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jiawenjie&quot; class=&quot;user-hover&quot; rel=&quot;jiawenjie&quot;&gt;jiawenjie&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for reporting this behavior. I believe you are referencing the &lt;a href=&quot;https://docs.mongodb.org/v2.6/reference/operator/query/near/#d-index&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;2.6 documentation&lt;/a&gt; which states that the $near queries that use a 2d index will return a limit of 100 documents. &lt;/p&gt;

&lt;p&gt;In MongoDB 3.0, this &lt;a href=&quot;https://docs.mongodb.org/manual/release-notes/3.0-compatibility/#geo-near-compatibility&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;limit is no longer used&lt;/a&gt; and our &lt;a href=&quot;https://docs.mongodb.org/manual/reference/operator/query/near/#behavior&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;latest documentation&lt;/a&gt; does not mention this restriction. Please use &lt;a href=&quot;https://docs.mongodb.org/manual/reference/method/cursor.limit/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;limit()&lt;/a&gt; If you would like to limit the number of results.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="272002">DOCS-7405</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="112459" name="dump.tar.gz" size="17622" author="jiawenjie" created="Tue, 8 Mar 2016 08:09:34 +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>Tue, 8 Mar 2016 16:37:27 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 48 weeks, 2 days ago
                        </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>jiawenjie</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkecn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsj5rr:</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1. create mongodb 3.2 and 2.6 instance respectively&lt;br/&gt;
2. using the dump file to restore the data.&lt;br/&gt;
3. db.player.find({&apos;match_lv&apos;:{&apos;$near&apos;:&lt;span class=&quot;error&quot;&gt;&amp;#91;1,0&amp;#93;&lt;/span&gt;}}).count();&lt;br/&gt;
4. in 3.2, it returns 1000 and in 2.6, it return 100(sorry for lack of 2.6 dumpfile)&lt;/p&gt;</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_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                    <customfieldvalue><![CDATA[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

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

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