db.getCollection('record').aggregate([
{ $group: { _id : '$hash', count: { $sum : 1 } } },
{ $match: { count: { $gt : 1} } }
])