[SERVER-47035] MongoDB Geospatial project matching multipoints only Created: 21/Mar/20  Updated: 23/Mar/20  Resolved: 23/Mar/20

Status: Closed
Project: Core Server
Component/s: Geo
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Michael Mikhjian Assignee: Carl Champain (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 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



 Comments   
Comment by Carl Champain (Inactive) [ 23/Mar/20 ]

mmikhjian@gmail.com,

Our DOCS project on Jira is also open source. For a documentation change request, feel free to open a ticket there!

Thank you,
Carl

Comment by Michael Mikhjian [ 23/Mar/20 ]

Hi Carl,

 

I assumed this would be a bug, if the documentation states that "includeLocs" outputs fields that identifies the location used to calculate the distance, would it not be then identifying a fixed set of coordinates rather than spitting out all coordinates stored? The documentation should be updated then to state "This does not specifically project the coordinates within the query" or so... 

Comment by Carl Champain (Inactive) [ 23/Mar/20 ]

Hi mmikhjian@gmail.com,

The SERVER project is for bugs and feature suggestions for the MongoDB server. As this ticket does not appear to be a bug, I will now close it. If you need assistance troubleshooting, I encourage you to ask our community by posting on the MongoDB Community Forums or on Stack Overflow with the mongodb tag.

Kind regards,
Carl

Generated at Thu Feb 08 05:13:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.