7 | db.events.find( {"aggregate":[{"$geoNear":{"near":[-85.756103515625,42.89619827270508],"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 | 5 | 47 |
10 | db.events_cache.insert( {"_id":"b7914b506bf4b27135ffded4e85e6a41","data":[{"Event":{"_id":{"title":"Off Road Demo Derby","venue_name":"Allegan County Fairgrounds","city":"Allegan","state":"MI"},"id":ObjectId ("6879393a384bf9134e02ed26"),"city":"Allegan","cvent_id":null,"cvent_status":null,"date_string":"Sunday, Sep 7, 2025 at 6:00pm","time_string":"6:00 PM","distance":25.48244907508793,"end":"","event_id":75834166,"featured":"","geo":[-85.8593978881836,42.535701751708984],"group_key":"75834166","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Allegan, MI","repeat_id":"","search_text":"Off Road Demo Derby, Allegan County Fairgrounds, 150 Allegan County Fair Drive, Allegan, ","sef_tail":"\/event\/off-road-demo-derby-2025-09-07-allegan-mi.html","start":"MongoDate(0.00000000 1757268000)","state":"MI","tags":["pr-email","seasonal","fair","step-outside","september","auto-event","arts-and-entertainment"],"title":"Off Road Demo Derby","town_sef_url":"allegan-mi","venue_name":"Allegan County Fairgrounds","dates":[]}},{"Event":{"_id":{"title":"Parade 2025","venue_name":"Allegan County Fairgrounds","city":"Allegan","state":"MI"},"id":ObjectId ("6879393a384bf9134e02ed24"),"city":"Allegan","cvent_id":null,"cvent_status":null,"date_string":"Monday, Sep 8, 2025 at 7:00pm","time_string":"7:00 PM","distance":25.48244907508793,"end":"","event_id":75834163,"featured":"","geo":[-85.8593978881836,42.535701751708984],"group_key":"75834163","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Allegan, MI","repeat_id":"","search_text":"Parade 2025, Allegan County Fairgrounds, 150 Allegan County Fair Drive, Allegan, ","sef_tail":"\/event\/parade-2025-2025-09-08-allegan-mi.html","start":"MongoDate(0.00000000 1757358000)","state":"MI","tags":["pr-email","fair","step-outside","september","seasonal","parade","arts-and-entertainment"],"title":"Parade 2025","town_sef_url":"allegan-mi","venue_name":"Allegan County Fairgrounds","dates":[]}},{"Event":{"_id":{"title":"Truck and Tractor Pulls 2025","venue_name":"Allegan County Fairgrounds","city":"Allegan","state":"MI"},"id":ObjectId ("6879393a384bf9134e02ed29"),"city":"Allegan","cvent_id":null,"cvent_status":null,"date_string":"Tuesday, Sep 9, 2025 at 7:00pm","time_string":"7:00 PM","distance":25.48244907508793,"end":"","event_id":75834169,"featured":"","geo":[-85.8593978881836,42.535701751708984],"group_key":"75834169","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Allegan, MI","repeat_id":"","search_text":"Truck and Tractor Pulls 2025, Allegan County Fairgrounds, 150 Allegan County Fair Drive, Allegan, ","sef_tail":"\/event\/truck-and-tractor-pulls-2025-2025-09-09-allegan-mi.html","start":"MongoDate(0.00000000 1757444400)","state":"MI","tags":["pr-email","seasonal","fair","step-outside","september","tractor-event","arts-and-entertainment"],"title":"Truck and Tractor Pulls 2025","town_sef_url":"allegan-mi","venue_name":"Allegan County Fairgrounds","dates":[]}},{"Event":{"_id":{"title":"Professional Rodeo 2025","venue_name":"Allegan County Fairgrounds","city":"Allegan","state":"MI"},"id":ObjectId ("6879393a384bf9134e02ed2b"),"city":"Allegan","cvent_id":null,"cvent_status":null,"date_string":"Wednesday, Sep 10, 2025 at 7:00pm","time_string":"7:00 PM","distance":25.48244907508793,"end":"","event_id":75834171,"featured":"","geo":[-85.8593978881836,42.535701751708984],"group_key":"75834171","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Allegan, MI","repeat_id":"","search_text":"Professional Rodeo 2025, Allegan County Fairgrounds, 150 Allegan County Fair Drive, Allegan, ","sef_tail":"\/event\/professional-rodeo-2025-2025-09-10-allegan-mi.html","start":"MongoDate(0.00000000 1757530800)","state":"MI","tags":["pr-email","seasonal","fair","rodeo","step-outside","september","arts-and-entertainment"],"title":"Professional Rodeo 2025","town_sef_url":"allegan-mi","venue_name":"Allegan County Fairgrounds","dates":[]}},{"Event":{"_id":{"title":"Kalamazoo Festival Fridays","venue_name":"Arcadia Creek Festival Place","city":"Kalamazoo","state":"MI"},"id":ObjectId ("68793920384bf9134e028edd"),"city":"Kalamazoo","cvent_id":null,"cvent_status":null,"date_string":"Friday, Sep 12, 2025 at 6:00pm","time_string":"6:00 PM","distance":42.66797696379672,"end":"MongoDate(0.00000000 1757714400)","event_id":75662847,"featured":"","geo":[-85.58270263671875,42.292701721191406],"group_key":"75662847","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Kalamazoo, MI","repeat_id":"","search_text":"Kalamazoo Festival Fridays, Arcadia Creek Festival Place, 145 East Water Street, Kalamazoo, these festivals celebrate diverse cultures showcase small businessesincluding food entrepreneurs merchandise vendorssupport local musicians offering live entertainment theme ldquotaste kalamazoordquo designed highlight fantastic scene city restaurants trucks encouraged participate this fourpart series extends event throughout summer providing opportunity connect different audiences with great performances schedule events entertainment p matthew borr northern ground","sef_tail":"\/event\/kalamazoo-festival-fridays-2025-09-12-kalamazoo-mi.html","start":"MongoDate(0.00000000 1757700000)","state":"MI","tags":["festival","seasonal","september","food-festival","step-outside","live-music","food-truck","arts-and-entertainment"],"title":"Kalamazoo Festival Fridays","town_sef_url":"kalamazoo-mi","venue_name":"Arcadia Creek Festival Place","dates":[]}}],"params":"{\"title\":\"Upcoming Festivals and Fairs Near Wyoming MI\",\"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\":42.89619827270508,\"lng\":-85.756103515625,\"latlng\":\"42.896198272705,-85.756103515625\",\"count\":0}","modified":"MongoDate(0.08100000 1756603602)","created":"MongoDate(0.08100000 1756603602)"} , true) | | 0 | 0 | 3 |