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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 1.9.0
    • Geo
    • None
    • ALL

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: