[SERVER-257] Complex key support for group command Created: 25/Aug/09  Updated: 12/Jul/16  Resolved: 09/Sep/09

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

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-208 map reduce api Closed
is related to SERVER-296 Complex key in group command inserts ... Closed
Participants:

 Description   

I'd like to be able to use complex (dotted-notation) keys such as "run.date" with the group command.

Ideally I could also do something like this where a key matches wherever a condition would:

insert( {a:[

{b:1}

,

{b:2}

,

{b:3}

]}
insert( {a:[

{b:2}

,

{b:3}

,

{b:4}

]}
insert( {a:[

{b:3}

,

{b:4}

,

{b:5}

]}

group({key:

{"a.b":true}

, reduce:some_count_func})
["a.b": 1, count:1]
["a.b": 2, count:2]
["a.b": 3, count:3]
["a.b": 4, count:2]
["a.b": 5, count:1]



 Comments   
Comment by Eliot Horowitz (Inactive) [ 15/Sep/09 ]

released in 1.1.0

Comment by Eliot Horowitz (Inactive) [ 09/Sep/09 ]

the 2nd part really needs map/reduce (1 document -> multiple keys)

Generated at Thu Feb 08 02:53:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.