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

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • 1.9.0
    • None
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: