I am using the following call in the 0.99-SNAPSHOT release to fetch objects in a certain radius.
T within(double x, double y, double radius);
If you pass a valid radius it seems to fetch values, but it throws the following exception if you pass a radius of "0".
com.mongodb.MongoInternalException: couldn't get next element
at com.mongodb.DBCursor.hasNext(DBCursor.java:459)
at com.google.code.morphia.query.MorphiaIterator.hasNext(MorphiaIterator.java:40)
at com.google.code.morphia.query.QueryImpl.asList(QueryImpl.java:234)
Is this a bug on my part or should the code treat this as a near call with no radius parameter. e.g. using T near(double x, double y);
--
Thanks,
- Rajesh Koilpillai