Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3056

No way to page results when using $near and > 100 results

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.9.0
    • Component/s: Geo
    • Labels:
      None
    • ALL

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jasonimison Jason Imison
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: