[SERVER-6531] support $within geo queries in aggregation Created: 19/Jul/12  Updated: 19/Mar/13  Resolved: 09/Jan/13

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: Matt Dannenberg Assignee: Mathias Stearn
Resolution: Done Votes: 8
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-7781 geoNear aggregation pipeline stage Closed
related to DOCS-968 Update aggregation framework referenc... Closed
is related to SERVER-6530 disallow geo commands in aggregation Closed
Participants:

 Description   

add support for $within to $match in the aggregation framework



 Comments   
Comment by Tad Marshall [ 08/Jan/13 ]

This build doesn't include Hari's latest change:

m30001| Tue Jan 8 13:13:46.260 [initandlisten] git version:
1c8278985f7376dd07f25427e65351d7fe460672

$ git log -2

commit 2e39303482c92e075012ca44ad76f9db1f00da0e
Author: Hari Khalsa <hkhalsa@10gen.com>
Date: Tue Jan 8 11:33:45 2013 -0500

2dsphere only suitable for within queries it actually handles

commit 1c8278985f7376dd07f25427e65351d7fe460672
Author: Tad Marshall <tad@10gen.com>
Date: Mon Jan 7 04:28:24 2013 -0500

Visual Studio – add and remove files

Comment by auto [ 17/Dec/12 ]

Author:

{u'date': u'2012-12-17T20:18:17Z', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-6531 support $within in aggregation $match operations
Branch: master
https://github.com/mongodb/mongo/commit/385502fd0d6a5aafa5478fb9099c4f26394627cb

Comment by Mathias Stearn [ 02/Dec/12 ]

Changing link from depends to related to to reflect correct scope of this ticket.

Comment by Daniel Kador [ 28/Nov/12 ]

Ah, great news! Thanks for the quick response.

Comment by Mathias Stearn [ 28/Nov/12 ]

We are planning to support this in the next release. $within queries will be supported at any stage of the pipeline. A new pipeline stage tentatively named $geoNear (like the command) will be added to support $near queries (SERVER-7781).

Comment by Daniel Kador [ 28/Nov/12 ]

Isn't it possible to support simple aggregations where the geo $match only appears in the first operation in the pipeline? Seems like the workaround for now is to do two steps:

1.) Geo query, store results in another collection.
2.) Perform aggregation on that collection.

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