google-code-export / morphia

Automatically exported from code.google.com/p/morphia
1 stars 0 forks source link

spherical flag for near and within queries doesn't work #310

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Tested with: 
Morphia: morphia-1.00-SNAPSHOT.jar as of 2011-08-11
Driver:  mongo-2.6.3.jar
mongod:  1.9.1

When using the spherical flag on FieldEnd.near() and FieldEnd.within(), Morphia 
sends an option "$nearSphere: true" to the driver. This doesn't work. Instead, 
the $near and $center operators need to be replaced with the $nearSphere and 
$centerSphere operators for spherical queries.

A patch is attached.

Original issue reported on code.google.com by sdeit...@googlemail.com on 11 Aug 2011 at 1:23

Attachments:

GoogleCodeExporter commented 9 years ago
See also discussion here: 
http://groups.google.com/group/morphia/browse_thread/thread/97915ba24bf5af8e

Original comment by sdeit...@googlemail.com on 11 Aug 2011 at 1:25

GoogleCodeExporter commented 9 years ago

Original comment by scotthernandez on 11 Aug 2011 at 1:35