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

MongoDB Geospatial project matching multipoints only

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Geo
    • Labels:
      None
    • Operating System:
      ALL

      Description

      Via MongoDB $geoNear command with Aggregate, I'm unable to gather the coordinates that are within the maxDistance via includeLocs field. 

      The documentation states to use includeLocs "specifies the output field that identifies the location used to calculate the distance. This option is useful when a location field contains multiple locations.", however the includeLocs field is including all multipoint locations.

      Does mongodb have the ability to project only the matching multipoints and not the whole set stored?

      Source: https://stackoverflow.com/questions/60782330/mongodb-geospatial-project-matching-multipoints-only

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              carl.champain Carl Champain (Inactive)
              Reporter:
              mmikhjian@gmail.com Michael Mikhjian
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: