2017-04-25 66 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}}} 
    ] 
)