[SERVER-7781] geoNear aggregation pipeline stage Created: 27/Nov/12  Updated: 19/Mar/13  Resolved: 17/Dec/12

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 2.3.2

Type: New Feature Priority: Major - P3
Reporter: Mathias Stearn Assignee: Mathias Stearn
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-4656 aggregation: optimize sort/limit com... Closed
Related
related to SERVER-7842 geoNear command should support s2d in... Closed
is related to SERVER-6531 support $within geo queries in aggreg... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

The $geoNear operator will be based on the geoNear command, supporting the same arguments with the same defaults as the command with the following exceptions:

1) Arguments are nested as in {$geoNear: {near:[10,20], spherical:true}}
2) limit is supported as a synonym for num (SERVER-5113).
3) num/limit can also be set by a following $limit
4) The matching documents are passed through the pipeline without a wrapper
5) A new required argument "distanceField" specifies a field name to inject the distance into. This could be optional on non-sharded systems, but I think it is best to require it everywhere.
6) includeLocs is still optional, but also takes a field to inject the location into.

geoNear command is documented here http://docs.mongodb.org/manual/reference/command/geoNear/



 Comments   
Comment by auto [ 15/Dec/12 ]

Author:

{u'date': u'2012-12-11T22:11:37Z', u'email': u'mathias@10gen.com', u'name': u'Mathias Stearn'}

Message: SERVER-7781 add $geoNear pipeline stage
Branch: master
https://github.com/mongodb/mongo/commit/13a551f7e4e4510c8d18f0aac0fe6259de6c4c00

Comment by auto [ 15/Dec/12 ]

Author:

{u'date': u'2012-12-10T21:40:09Z', u'email': u'mathias@10gen.com', u'name': u'Mathias Stearn'}

Message: Make handling of pipeline stages more sane

Major Changes:

  • Pipeline::sourceVector is now a deque and renamed to "sources"
  • Initial source is now always sources.front() rather than being passed to run()
  • Unified explain and non-explain paths in pipeline_command.cpp since they became the same

This is part of prep for SERVER-7781 ($geoNear pipeline stage)
Branch: master
https://github.com/mongodb/mongo/commit/5786cd475e19250893df3e466005a2a490c91e30

Generated at Thu Feb 08 03:15:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.