<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:30:08 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-12942] Multiple geoSpatial indexes in a collection</title>
                <link>https://jira.mongodb.org/browse/SERVER-12942</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The documentation at &lt;a href=&quot;http://docs.mongodb.org/master/core/2dsphere/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/master/core/2dsphere/&lt;/a&gt; states that you can have only one geospatial index per collection. However we can create multiple geospatial indexes&lt;/p&gt;

&lt;p&gt;find with $near works&lt;/p&gt;

&lt;p&gt;geoNear and $geoNear do not work&lt;br/&gt;
 &quot;errmsg&quot; : &quot;exception: geoNear command failed: &lt;/p&gt;
{ ok: 0.0, errmsg: \&quot;more than one 2dsphere index, not sure which to run geoNear on\&quot; }
&lt;p&gt;&quot;&lt;/p&gt;
</description>
                <environment></environment>
        <key id="115444">SERVER-12942</key>
            <summary>Multiple geoSpatial indexes in a collection</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="-1">Unassigned</assignee>
                                    <reporter username="rajeXsh">Rajesh Khot</reporter>
                        <labels>
                            <label>2dsphere,</label>
                            <label>geospatial</label>
                    </labels>
                <created>Thu, 27 Feb 2014 20:43:54 +0000</created>
                <updated>Wed, 10 Dec 2014 23:05:16 +0000</updated>
                            <resolved>Thu, 27 Feb 2014 22:33:18 +0000</resolved>
                                    <version>2.6.0-rc0</version>
                                                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="506765" author="dan@10gen.com" created="Thu, 27 Feb 2014 22:28:03 +0000"  >&lt;p&gt;Thanks for the report.  It is a dupe of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3653&quot; title=&quot;Issues with multiple spatial indexes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3653&quot;&gt;&lt;del&gt;SERVER-3653&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="21217">SERVER-3653</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>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 27 Feb 2014 22:28:03 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 50 weeks, 6 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>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>rajeXsh</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrm0db:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>103191</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;db.testgeo.insert({name: &quot;New York, NY&quot;, loc : { type:&quot;Point&quot;, coordinates:&lt;span class=&quot;error&quot;&gt;&amp;#91;-74.005973,40.714353&amp;#93;&lt;/span&gt;}})&lt;br/&gt;
db.testgeo.insert({name: &quot;Los Angles, CA&quot;, loc : { type:&quot;Point&quot;, coordinates:&lt;span class=&quot;error&quot;&gt;&amp;#91;-118.243685,34.052234&amp;#93;&lt;/span&gt;}})&lt;br/&gt;
db.testgeo.ensureIndex(&lt;/p&gt;
{loc:&quot;2dsphere&quot;}
&lt;p&gt;)&lt;br/&gt;
db.testgeo.ensureIndex(&lt;/p&gt;
{loc:&quot;2dsphere&quot;,name:1}
&lt;p&gt;)&lt;br/&gt;
db.testgeo.ensureIndex(&lt;/p&gt;
{name:1,loc:&quot;2dsphere&quot;}
&lt;p&gt;)&lt;br/&gt;
db.testgeo.find({loc:{$near:{$geometry:{type : &quot;Point&quot; ,coordinates :&lt;span class=&quot;error&quot;&gt;&amp;#91;-74.005973,40.714353&amp;#93;&lt;/span&gt;}}}})&lt;/p&gt;

&lt;p&gt;db.runCommand({geoNear: &quot;testgeo&quot;,near : {$geometry:&lt;/p&gt;
{type : &quot;Point&quot; ,coordinates :[-74.005973,40.714353]}
&lt;p&gt;}})&lt;br/&gt;
db.testgeo.aggregate([{$geoNear:{near:&lt;span class=&quot;error&quot;&gt;&amp;#91;-74.005973, 40.714353 &amp;#93;&lt;/span&gt;,distanceField:&quot;dyst&quot;}}])&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>
                                

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

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