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

Add full query support for $meta values geoNearDistance/geoNearPoint

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Geo, Querying
    • Query Integration

      The $meta values "geoNearDistance"/"geoNearPoint" should be given full query support.

      Exposing "geoNearDistance" to users will allow them to get off of the $near/$nearSphere query operators, which suffer from no real query planner support and poor semantics.

      For example:

      • Preferred: find({geo: {$geoWithin: ...}}, {dist: {$meta: "geoNearDistance"}}).sort({dist: {$meta: "geoNearDistance"}})
      • Not preferred: find({geo: {$nearSphere: ...}})

            Assignee:
            backlog-query-integration [DO NOT USE] Backlog - Query Integration
            Reporter:
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: