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

Deprecate alternate syntax for $maxDistance with $near

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Geo
    • Labels:
      None

      Description

      Deprecate with an error message that the alternate, undocumented $maxDistance syntax for $near.

      Currently, the following syntax:

      db.t.find( { loc : { $near : [56, 8, 10] } } )

      is a synonym for this:

      db.t.find( { loc : { $near : [56, 8], $maxDistance:10 } } )

        Attachments

          Activity

            People

            Assignee:
            hari.khalsa@10gen.com hari.khalsa@10gen.com
            Reporter:
            pasette Daniel Pasette
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: