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

Allow {$meta: 'geoNearDistance'} syntax, at least internally

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      QO 2021-09-06

      Description

      To support running a $geoNear stage in the middle of a pipeline, we want to rewrite it to something like $computeGeoNearDistance + $match + $sort by {$meta geoNearDistance}.

      But currently $sort doesn't support {$meta: 'geoNearDistance'}. Hopefully this is something we just need to enable in the parser.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              milena.ivanova Milena Ivanova
              Reporter:
              david.percy David Percy
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: