Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
None
-
Java/Mongodb API
*Location*: http://docs.mongodb.org/manual/tutorial/calculate-distances-using-spherical-geometry-with-2d-geospatial-indexes/
*User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36
*Referrer*: http://docs.mongodb.org/manual/core/2d/
*Screen Resolution*: 1366 x 768
*repo*: docs
*source*: tutorial/calculate-distances-using-spherical-geometry-with-2d-geospatial-indexes
Java/Mongodb API *Location*: http://docs.mongodb.org/manual/tutorial/calculate-distances-using-spherical-geometry-with-2d-geospatial-indexes/ *User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36 *Referrer*: http://docs.mongodb.org/manual/core/2d/ *Screen Resolution*: 1366 x 768 *repo*: docs *source*: tutorial/calculate-distances-using-spherical-geometry-with-2d-geospatial-indexes
Description
{ "location" : { "$near" : [ -40.8 , 45.9] , "$maxDistance" : ".01" , "$type" : "2"}}
com.mongodb.MongoException: error counting :
{ "errmsg" : "exception: type not supported for appendMinElementForType" , "code" : 10061 , "ok" : 0.0} at com.mongodb.DBCollection.getCount(DBCollection.java:771)
at com.mongodb.DBCursor.size(DBCursor.java:632)
at com.gowonder.test.classes.Testclass.main(Testclass.java:76)