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:3},
{b:4}]}
insert( {a:[
,
{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]
- is related to
-
SERVER-208 map reduce api
- Closed
-
SERVER-296 Complex key in group command inserts wrong key into output object
- Closed