خرید بک لینک

Vote count: 0

I have documents of the form

"Id" : cooldude1@gmail.com

"Website" : www.facebook.com

"Time" : ISODate("Some Date and time")

"XYZ" : xyz1 (Other irrelevant fields)

"ABC" : abc1 (Other irrelevant fields)

"Id" : cooldude2@gmail.com

"Website" : www.facebook.com

"Time" : ISODate("Some Date and time")

"XYZ" : xyz1 (Other irrelevant fields)

"ABC" : abc1 (Other irrelevant fields)

"Id" : cooldude1@gmail.com

"Website" : www.twitter.com

"Time" : ISODate("Some Date and time")

"XYZ" : xyz2 (Other irrelevant fields)

"ABC" : abc2 (Other irrelevant fields)

I want to aggregate data in a way that I obtain the following:

The date matches a particular date, say 2016-01-01 and for that match we should have AccountId and the number of times that account visited a particular website that day.

{ ["Id":"cooldude1@gmail.com",

["Website":"www.twitter.com", "count on 2016-01-01": 15],

["Website":"www.facebook.com", "count on 2016-01-01":20],

["www.stackoverflow.com", "count":5]]  

["Id":"cooldude2@gmail.com",

["Website":"www.facebook.com", "count on 2016-01-01":2], ... and so on

}

Thanks! :)

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 3 ارديبهشت 1395 ساعت: 22:41

صفحه بندی