<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:39: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>[DOCS-597] Corrections for geospatial examples in &quot;within&quot; section of &quot;operators&quot;</title>
                <link>https://jira.mongodb.org/browse/DOCS-597</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;At &lt;a href=&quot;http://docs.mongodb.org/manual/reference/operators/#_S_within&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/reference/operators/#_S_within&lt;/a&gt; code is given to find geospatial data within a circle. The following code is given:&lt;br/&gt;
db.collection.find( { location: { $within: &lt;/p&gt;
{ $circle: [ center, radius }
&lt;p&gt; } } );&lt;/p&gt;

&lt;p&gt;A &quot;]&quot; (without quotes) is missing. Also should $circle be changed to $center?&lt;/p&gt;

&lt;p&gt;Using the dataset provided for Chris Harris training session at Kamstrup in Denmark this week i get the following results:&lt;/p&gt;

&lt;p&gt;&amp;gt; db.tweets.find( {&quot;geo.coordinates&quot;: {$within: {$center: [&lt;span class=&quot;error&quot;&gt;&amp;#91;37.75, -122.42&amp;#93;&lt;/span&gt;,5]} } } ).count()&lt;br/&gt;
13&lt;/p&gt;

&lt;p&gt;&amp;gt; db.tweets.find( {&quot;geo.coordinates&quot;: {$within: {$circle: [&lt;span class=&quot;error&quot;&gt;&amp;#91;37.75, -122.42&amp;#93;&lt;/span&gt;,5]} } } ).count()&lt;br/&gt;
Mon Oct 08 14:40:53 uncaught exception: count failed: {&lt;br/&gt;
        &quot;errmsg&quot; : &quot;exception: unknown $within information : &lt;/p&gt;
{ $circle: [ [ 37.75, -122.42 ], 5.0 ] }
&lt;p&gt;, a shape must be specified.&quot;,&lt;br/&gt;
        &quot;code&quot; : 13058,&lt;br/&gt;
        &quot;ok&quot; : 0&lt;/p&gt;</description>
                <environment></environment>
        <key id="52878">DOCS-597</key>
            <summary>Corrections for geospatial examples in &quot;within&quot; section of &quot;operators&quot;</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="kay.kim@mongodb.com">Kay Kim</assignee>
                                    <reporter username="rwe@kamstrup.dk">Rasmus Weber-Esmann</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Oct 2012 07:28:50 +0000</created>
                <updated>Thu, 10 Jan 2013 15:50:11 +0000</updated>
                            <resolved>Tue, 8 Jan 2013 05:35:57 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="236203" author="samk" created="Thu, 10 Jan 2013 15:50:11 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=rwe%40kamstrup.dk&quot; class=&quot;user-hover&quot; rel=&quot;rwe@kamstrup.dk&quot;&gt;rwe@kamstrup.dk&lt;/a&gt;: Agreed. Sorry I didn&apos;t make the duplicate link explicit. We&apos;re working on resolving this later this week, I just closed this ticket for clarity. &lt;/p&gt;

&lt;p&gt;Thanks for the attention here! &lt;/p&gt;</comment>
                            <comment id="236005" author="rwe@kamstrup.dk" created="Thu, 10 Jan 2013 11:34:43 +0000"  >&lt;p&gt;Only half of the issue has been resolved.&lt;/p&gt;

&lt;p&gt;There is still the case of the missing &quot;]&quot; (without quotes).&lt;br/&gt;
On &lt;a href=&quot;http://docs.mongodb.org/manual/reference/operators/#_S_within&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/reference/operators/#_S_within&lt;/a&gt; in the circles example it says:&lt;/p&gt;

&lt;p&gt;db.collection.find( { location: { $within: &lt;/p&gt;
{ $center: [ center, radius }
&lt;p&gt; } } );&lt;/p&gt;

&lt;p&gt;It should instead be:&lt;/p&gt;

&lt;p&gt;db.collection.find( { location: { $within: &lt;/p&gt;
{ $center: [ center, radius ] }
&lt;p&gt; } } );&lt;/p&gt;



&lt;p&gt;Best regards&lt;/p&gt;

&lt;p&gt;Kamstrup A/S &amp;lt;&lt;a href=&quot;http://www.kamstrup.com&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.kamstrup.com&lt;/a&gt;&amp;gt; &lt;br/&gt;
Rasmus Lauszus Weber-Esmann&lt;br/&gt;
Software Developer&lt;br/&gt;
Technology, Software&lt;/p&gt;

&lt;p&gt;Kamstrup A/S&lt;br/&gt;
Industrivej 28&lt;br/&gt;
DK-8660 Skanderborg&lt;br/&gt;
Tel:	 +45 89 93 10 00	 &lt;br/&gt;
Fax:	 +45 89 93 10 01	 &lt;br/&gt;
Dir:	 +45 89 93 10 42	 &lt;br/&gt;
Mob:	 +45 20 81 87 46	 &lt;br/&gt;
E-mail:	 rwe@kamstrup.dk	 &lt;br/&gt;
Web:	 www.kamstrup.com	 &lt;/p&gt;

</comment>
                            <comment id="236002" author="rwe@kamstrup.dk" created="Thu, 10 Jan 2013 11:30:06 +0000"  >&lt;p&gt;Only half of the issue has been resolved.&lt;/p&gt;

&lt;p&gt;There is still the case of the missing &quot;]&quot; (without quotes).&lt;br/&gt;
On &lt;a href=&quot;http://docs.mongodb.org/manual/reference/operators/#_S_within&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/reference/operators/#_S_within&lt;/a&gt; in the circles example it says:&lt;/p&gt;

&lt;p&gt;db.collection.find( { location: { $within: &lt;/p&gt;
{ $center: [ center, radius }
&lt;p&gt; } } );&lt;/p&gt;

&lt;p&gt;It should instead be:&lt;/p&gt;

&lt;p&gt;db.collection.find( { location: { $within: &lt;/p&gt;
{ $center: [ center, radius ] }
&lt;p&gt; } } );&lt;/p&gt;</comment>
                            <comment id="233841" author="kay.kim@10gen.com" created="Tue, 8 Jan 2013 05:35:57 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-725&quot; title=&quot;Example for $center operator under $within uses &amp;quot;$circle&amp;quot; instead&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-725&quot;&gt;&lt;del&gt;DOCS-725&lt;/del&gt;&lt;/a&gt; &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="60761">DOCS-934</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>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 Jan 2013 05:35:57 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 5 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kay.kim@mongodb.com</customfieldvalue>
            <customfieldvalue>rwe@kamstrup.dk</customfieldvalue>
            <customfieldvalue>sam.kleinman</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrsa7z:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>30034</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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hryi1z:</customfieldvalue>

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