[SERVER-3056] No way to page results when using $near and > 100 results Created: 06/May/11  Updated: 15/Feb/13  Resolved: 17/Jan/13

Status: Closed
Project: Core Server
Component/s: Geo
Affects Version/s: 1.9.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Jason Imison Assignee: Unassigned
Resolution: Duplicate Votes: 4
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-5236 $near query should return results pro... Closed
Operating System: ALL
Participants:

 Description   

I have a resultset of ~1000 results. I need this to be sorted by distance and paged.

Using $within, I can accomplish the paging but not the sorting.
Using $near, I have sorting, but no paging (unless the count is less than 100)

$near seems to use the $limit parameter to determine the total number of results, instead of the page size.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 17/Jan/13 ]

Consolidating onto SERVER-5800

Generated at Thu Feb 08 03:01:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.