On Mar 2, 2010, at 6:58 PM, Lincoln Hochberg <lin...@hotpotato.com>
wrote:
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en
> .
It's possible it's broken with embedded fields. Could you try putting gps at the top level? I'll test more tonight
Hey guys,
Thanks very much for 1.3.3 - it's awesome!
I'm having a little trouble with geospatial search, which I'm testing.
I created the following index:
{
"name" : "location.gps_",
"ns" : "test.events",
"key" : {
"location.gps" : "2d"
}
}
However, when I try to use it with a query like this:
{ "location.gps" : { "$near" : { "lat" : 40.719745 , "lon" : -73.955041}} , "_id" : { "$nin" : [ "4b8acc6e35b304d9dbdf6d90" , "4b8c244d468e04d925c6b191" ]} , "state" : "pre"}
I get the following error from the java driver:
java.lang.RuntimeException: db error [can't find index starting point]
at com.mongodb.DBApiLayer$MyCollection.find(DBApiLayer.java:321)
at com.mongodb.DBCursor._check(DBCursor.java:253)
at com.mongodb.DBCursor._hasNext(DBCursor.java:374)
at com.mongodb.DBCursor._fill(DBCursor.java:442)
at com.mongodb.DBCursor.toArray(DBCursor.java:472)
at com.mongodb.DBCursor.toArray(DBCursor.java:461)
at com.hotpotato.core.mongo.Collection$Cursor.toList(Collection.scala:205)
On Thu, Mar 18, 2010 at 2:52 PM, Lincoln <linxb...@gmail.com> wrote: