7 | db.events.find( {"aggregate":[{"$geoNear":{"near":[-96.65170288085938,46.78010177612305],"distanceField":"distance","distanceMultiplier":3963.2,"maxDistance":0.01135446104158256,"spherical":true,"query":{"start":{"$gte":"MongoDate(0.00000000 1756530000)"},"tags":{"$in":["festival","fair","rodeo"]}}}},{"$sort":{"start":1,"id":1}},{"$group":{"_id":{"title":"$title","venue_name":"$venue_name","city":"$city","state":"$state"},"id":{"$first":"$_id"},"city":{"$first":"$city"},"cvent_id":{"$first":"$cvent_id"},"cvent_status":{"$first":"$cvent_status"},"date_string":{"$first":"$date_string"},"time_string":{"$first":"$time_string"},"distance":{"$first":"$distance"},"end":{"$first":"$end"},"event_id":{"$first":"$event_id"},"featured":{"$first":"$featured"},"geo":{"$first":"$geo"},"group_key":{"$first":"$group_key"},"image_url":{"$first":"$image_url"},"location_string":{"$first":"$location_string"},"repeat_id":{"$first":"$repeat_id"},"search_text":{"$first":"$search_text"},"sef_tail":{"$first":"$sef_tail"},"start":{"$first":"$start"},"state":{"$first":"$state"},"tags":{"$first":"$tags"},"title":{"$first":"$title"},"town_sef_url":{"$first":"$town_sef_url"},"venue_name":{"$first":"$venue_name"},"dates":{"$push":{"start":"$start","date_string":"$date_string","sef_tail":"$sef_tail"}}}},{"$sort":{"start":1,"id":1}},{"$sort":{"start":1,"id":1}},{"$skip":0},{"$limit":15}]}, [] ).sort( {"start":1,"id":1} ).limit( 15 ).skip( 0 ) | | 0 | 3 | 10 |
10 | db.events_cache.insert( {"_id":"e9a7e22e8605975235d2ee6788aa4fcf","data":[{"Event":{"_id":{"title":"Parish Festival","venue_name":"St. Thomas Catholic Church","city":"Kent","state":"MN"},"id":ObjectId ("68793940384bf9134e03039b"),"city":"Kent","cvent_id":null,"cvent_status":null,"date_string":"Sunday, Sep 7, 2025 at 10:00am","time_string":"10:00 AM","distance":23.67343426401031,"end":"MongoDate(0.00000000 1757253600)","event_id":75862646,"featured":"","geo":[-96.68450164794922,46.4385986328125],"group_key":"75862646","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Kent, MN","repeat_id":"","search_text":"Parish Festival, St. Thomas Catholic Church, 114 Harris Street Kent, Kent, fall bazaar kent st thomas parishkent parish begins with mass am followed turkey dinner served church basement from pm free will offering event includes live music games ages crafts country store cake walk theme baskets grand raffle drawing","sef_tail":"\/event\/parish-festival-2025-09-07-kent-mn.html","start":"MongoDate(0.00000000 1757239200)","state":"MN","tags":["seasonal","festival","other-festival","step-outside","september","live-music","arts-and-entertainment"],"title":"Parish Festival","town_sef_url":"kent-mn","venue_name":"St. Thomas Catholic Church","dates":[]}},{"Event":{"_id":{"title":"Parish Festival","venue_name":"Our Lady of Victory Catholic Church","city":"Fergus Falls","state":"MN"},"id":ObjectId ("68793944384bf9134e030e1c"),"city":"Fergus Falls","cvent_id":null,"cvent_status":null,"date_string":"Sunday, Sep 21, 2025 at 10:30am","time_string":"10:30 AM","distance":43.70768039749885,"end":"MongoDate(0.00000000 1758465000)","event_id":75874329,"featured":"","geo":[-96.0807256,46.2851414],"group_key":"75874329","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Fergus Falls, MN","repeat_id":"","search_text":"Parish Festival, Our Lady of Victory Catholic Church, 207 N Vine St, Fergus Falls, fall festival fergus falls lady victory parishfergus parish begins with masses am turkey dinner served from pm airconditioned handicapped accessible church hall drivethru available event includes bingo silent auction country store cake walk childrenrsquogames grand raffle drawing prizes include cash plus five grocery shopping dash other separate quilt","sef_tail":"\/event\/parish-festival-2025-09-21-fergus-falls-mn.html","start":"MongoDate(0.00000000 1758450600)","state":"MN","tags":["seasonal","festival","other-festival","step-outside","september","arts-and-entertainment"],"title":"Parish Festival","town_sef_url":"fergus-falls-mn","venue_name":"Our Lady of Victory Catholic Church","dates":[]}},{"Event":{"_id":{"title":"Parish Festival","venue_name":"","city":"Breckenridge","state":"MN"},"id":ObjectId ("68793944384bf9134e030e67"),"city":"Breckenridge","cvent_id":null,"cvent_status":null,"date_string":"Sunday, Oct 26, 2025 at 10:00am","time_string":"10:00 AM","distance":35.64899038931589,"end":"","event_id":75874572,"featured":"","geo":[-96.58619689941406,46.266700744628906],"group_key":"75874572","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Breckenridge, MN","repeat_id":"","search_text":"Parish Festival, , St Mary's School, Breckenridge, breckenridge st mary presentation parish fall festival begins with mass am church booths open maryrsquoschool roasted turkey pork dinner trimmings from pm cash raffle","sef_tail":"\/event\/parish-festival-2025-10-26-breckenridge-mn.html","start":"MongoDate(0.00000000 1761472800)","state":"MN","tags":["seasonal","festival","other-festival","step-outside","october","arts-and-entertainment"],"title":"Parish Festival","town_sef_url":"breckenridge-mn","venue_name":"","dates":[]}}],"params":"{\"title\":\"Upcoming Festivals and Fairs Near Sabin MN\",\"tags\":{\"$in\":[\"festival\",\"fair\",\"rodeo\"]},\"keyword\":\"\",\"radius\":45,\"limit\":15,\"page\":1,\"sef\":\"\",\"tags_logical\":\"\",\"terms\":\"\",\"show\":15,\"show_limit\":3,\"sort\":\"\",\"days\":365,\"images\":\"yes\",\"max-days\":365,\"max-miles\":45,\"message\":\"\",\"min\":20,\"prompt\":\"\",\"height\":\"\",\"width\":\"\",\"more\":\"yes\",\"autoshowmore\":\"no\",\"link\":\"\",\"showdesc\":\"yes\",\"rankby\":\"distance\",\"type\":\"\",\"ad_slots\":\"\",\"see-more-title\":\"\",\"searchdate\":\"\",\"lat\":46.78010177612305,\"lng\":-96.65170288085938,\"latlng\":\"46.780101776123,-96.651702880859\",\"count\":1}","modified":"MongoDate(0.92200000 1756613754)","created":"MongoDate(0.92200000 1756613754)"} , true) | | 0 | 0 | 2 |