Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.6.1 (Evans SR1)
-
Fix Version/s: 1.5.5 (Dijkstra SR5), 1.6.2 (Evans SR2), 1.7 RC1 (Fowler)
-
Component/s: Core
-
Labels:None
Description
Aloha,
I have the following query:
public GeoResults<MyObject> findByTypeAndLocationNear(MyObjectType type, Point p, Distance distance) { final NearQuery nearQuery = NearQuery.near(p).maxDistance(distance); log.info("{}",nearQuery.toDBObject()); return mongoTemplate.geoNear(nearQuery, MyObject.class); }
The geoNear method is documented like this:
Returns {@link GeoResults} for all entities matching the given {@link NearQuery}.
I expect 1000 "matching" documents But i only get 100. There is some default being set, that restricts the result to 100. That should be stated in the method. And another method having a pageable should be added.
What do you think?