2017-04-25 68 views

回答

0

后$匹配滤波器match试图筛选计数:

db.mydate.aggregate(
    [ 
     { 
     $group : { 
      _id : "Ident.url", 
      count: { $sum: 1 } 
     } 
     }, 
     { 
     $match : { 
      count: { 
      $gt: 10 
      } 
     } 
     } 
    ] 
) 
0

你可以组

db.mydate.aggregate(
    [ 
     { 
     $group : { 
      _id : "Ident.url", 
      count: { $sum: 1 } 
     } 
     }, 
     {$match: {count: {$gt:10}}} 
    ] 
)