For grouping in Mongodb, you should use aggregate():
db.collectionName.aggregate([
{$match:{
"word": "Casper"
}},
{
$group:
{
_id:{
"word" : "$word"
},
"som1" : {$sum:"$something.som1"},
"som2" : {$sum:"$something.som2"}
}
},
{
$addFields:{
"something":{
"som1": "$som1",
"som2": "$som2"
}
}
},
{
$project:{
"som1":0,
"som2":0
}
}
])
CLICK HERE to find out more related problems solutions.