Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-3465

$near page should note that it can't be used to query sharded collections

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • v1.3.6
    • None
    • manual
    • None

    Description

      This page: http://docs.mongodb.org/manual/reference/operator/query/near/

      geoNear command, or $geoNear within aggregate() can be used instead.

      If the collection is sharded, the following message will appear when using $near:

      error: { "$err" : "use geoNear command rather than $near query", "code" : 13501 }

      Related to SERVER-1981

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            jason.zucchetto Jason Zucchetto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 36 weeks, 5 days ago