<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:56:16 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>[JAVA-2080] The $near query works from the shell but complains that it can&apos;t find index from morphia</title>
                <link>https://jira.mongodb.org/browse/JAVA-2080</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Following is the morphia query:&lt;/p&gt;

&lt;p&gt;final Query&amp;lt;Node&amp;gt; getNodesQuery = datastore.createQuery(Node.class).&lt;br/&gt;
				field(&quot;point.coordinates&quot;).near(-71.097825, 42.386532);//, radius);&lt;br/&gt;
		return getNodesQuery.asList();&lt;/p&gt;

&lt;p&gt;Following is the shell query:&lt;br/&gt;
db.nodes.find(    { point :        { $near :           {             $geometry : &lt;/p&gt;
{                type : &quot;Point&quot; ,                coordinates : [-71.097825, 42.386532] }
&lt;p&gt;,             $maxDistance : 50           }        }     } )&lt;/p&gt;

&lt;p&gt;And the error:&lt;br/&gt;
Exception in thread &quot;main&quot; com.mongodb.MongoQueryException: Query failed with error code 17007 and error message &apos;Unable to execute query: error processing query: ns=nodal_scoring_db_v2.nodes limit=0 skip=0&lt;br/&gt;
Tree: GEONEAR  field=point.coordinates maxdist=1.79769e+308 isNearSphere=0&lt;br/&gt;
Sort: {}&lt;br/&gt;
Proj: {}&lt;br/&gt;
 planner returned error: unable to find index for $geoNear query&apos; &lt;/p&gt;</description>
                <environment>eclipse, mongodb on rhel, morphia 1.0.1</environment>
        <key id="246407">JAVA-2080</key>
            <summary>The $near query works from the shell but complains that it can&apos;t find index from morphia</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="-1">Unassigned</assignee>
                                    <reporter username="riju">riju pahwa</reporter>
                        <labels>
                            <label>morphia</label>
                    </labels>
                <created>Fri, 8 Jan 2016 22:37:15 +0000</created>
                <updated>Wed, 11 Sep 2019 19:09:25 +0000</updated>
                            <resolved>Mon, 11 Jan 2016 15:23:27 +0000</resolved>
                                    <version>3.2.0</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1130142" author="jeff.yemin" created="Fri, 8 Jan 2016 22:51:57 +0000"  >&lt;p&gt;This project is for reporting issues with the MongoDB Java driver.  &lt;/p&gt;

&lt;p&gt;Please see the &lt;a href=&quot;http://mongodb.github.io/morphia/1.0/issues-help/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this page&lt;/a&gt; for how to report issues and get help with Morphia.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Jeff &lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsfbpj:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>