8 | db.events.find( {"aggregate":[{"$geoNear":{"near":[-98.88839721679688,43.028499603271484],"distanceField":"distance","distanceMultiplier":3963.2,"maxDistance":0.01135446104158256,"spherical":true,"query":{"start":{"$gte":"MongoDate(0.00000000 1756530000)"}}}},{"$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 | 4 | 9 |
11 | db.events_cache.insert( {"_id":"6624e4f367bb13f8d6808f27cdf76204","data":[{"Event":{"_id":{"title":"Wagner Labor Day Celebration","venue_name":"","city":"Wagner","state":"SD"},"id":ObjectId ("68793948384bf9134e0319af"),"city":"Wagner","cvent_id":null,"cvent_status":null,"date_string":"Saturday, Aug 30, 2025 at 8:00am","time_string":"8:00 AM","distance":30.45052419740228,"end":"","event_id":75884949,"featured":"","geo":[-98.29019927978516,43.0807991027832],"group_key":"75884949","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Wagner, SD","repeat_id":"","search_text":"Wagner Labor Day Celebration, , Various Venue in Wagner, SD, Wagner, worldbest labor celebration schedule events road raceregistration amentry fee location front ave wagner blocks south city park kiddie paraderegistration free poker runregistration armory roll north side midway opens lynch carnivallocation main streetadvance wristband locations first dakota commercial state bank fort randall credit unionadvance ticket union superfoods buches kids pedal pulllocation north street rodeomutton busting youth steer ridingtough enough wear pink night prizes best dressedlocation rodeo groundscontact john havranek announcer colin huntstock contractor muddy creek rodeofollowing live with serious shirleylocation groundscost rodeo wristband gate","sef_tail":"\/event\/wagner-labor-day-celebration-2025-08-30-wagner-sd.html","start":"MongoDate(0.00000000 1756540800)","state":"SD","tags":["seasonal","august","running","parade","carnival","rodeo","step-outside","arts-and-entertainment"],"title":"Wagner Labor Day Celebration","town_sef_url":"wagner-sd","venue_name":"","dates":{"1":{"start":"MongoDate(0.00000000 1756630800)","date_string":"Sunday, Aug 31, 2025 at 9:00am","sef_tail":"\/event\/wagner-labor-day-celebration-2025-08-31-wagner-sd.html"},"2":{"start":"MongoDate(0.00000000 1756717200)","date_string":"Monday, Sep 1, 2025 at 9:00am","sef_tail":"\/event\/wagner-labor-day-celebration-2025-09-01-wagner-sd.html"}}}},{"Event":{"_id":{"title":"Armour Farmers' Market","venue_name":"","city":"Armour","state":"SD"},"id":ObjectId ("6879394e384bf9134e032cf3"),"city":"Armour","cvent_id":null,"cvent_status":null,"date_string":"Monday, Sep 1, 2025 at 4:00pm","time_string":"4:00 PM","distance":33.94299749436167,"end":"MongoDate(0.00000000 1756749600)","event_id":75907837,"featured":"","geo":[-98.34660339355469,43.31949996948242],"group_key":"3217292","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Armour, SD","repeat_id":"3217292","search_text":"Armour Farmers' Market, , Lions Park, 7th Street, Armour, season summer market hours june september mondays locationnbsplions park street","sef_tail":"\/event\/armour-farmers-market-2025-09-01-armour-sd.html","start":"MongoDate(0.00000000 1756742400)","state":"SD","tags":["farmers-market","step-outside","aarp","clubs-and-organizations"],"title":"Armour Farmers' Market","town_sef_url":"armour-sd","venue_name":"","dates":{"1":{"start":"MongoDate(0.00000000 1757347200)","date_string":"Monday, Sep 8, 2025 at 4:00pm","sef_tail":"\/event\/armour-farmers-market-2025-09-08-armour-sd.html"},"2":{"start":"MongoDate(0.00000000 1757952000)","date_string":"Monday, Sep 15, 2025 at 4:00pm","sef_tail":"\/event\/armour-farmers-market-2025-09-15-armour-sd.html"},"3":{"start":"MongoDate(0.00000000 1758556800)","date_string":"Monday, Sep 22, 2025 at 4:00pm","sef_tail":"\/event\/armour-farmers-market-2025-09-22-armour-sd.html"}}}},{"Event":{"_id":{"title":"Burke Area Farmers Market","venue_name":"Burke City Park","city":"Burke","state":"SD"},"id":ObjectId ("6879390b384bf9134e023716"),"city":"Burke","cvent_id":null,"cvent_status":null,"date_string":"Thursday, Sep 4, 2025 at 5:30pm","time_string":"5:30 PM","distance":23.243946115537945,"end":"MongoDate(0.00000000 1757012400)","event_id":75453784,"featured":"","geo":[-99.2964262,43.1839934],"group_key":"3211164","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Burke, SD","repeat_id":"3211164","search_text":"Burke Area Farmers Market, Burke City Park, 626 Co Rd 23, Burke, season summermarket hoursjuly september thursdays pm pmlocationnbspburke city park burke","sef_tail":"\/event\/burke-area-farmers-market-2025-09-04-burke-sd.html","start":"MongoDate(0.00000000 1757007000)","state":"SD","tags":["farmers-market","step-outside","aarp","clubs-and-organizations"],"title":"Burke Area Farmers Market","town_sef_url":"burke-sd","venue_name":"Burke City Park","dates":{"1":{"start":"MongoDate(0.00000000 1757611800)","date_string":"Thursday, Sep 11, 2025 at 5:30pm","sef_tail":"\/event\/burke-area-farmers-market-2025-09-11-burke-sd.html"},"2":{"start":"MongoDate(0.00000000 1758216600)","date_string":"Thursday, Sep 18, 2025 at 5:30pm","sef_tail":"\/event\/burke-area-farmers-market-2025-09-18-burke-sd.html"},"3":{"start":"MongoDate(0.00000000 1758821400)","date_string":"Thursday, Sep 25, 2025 at 5:30pm","sef_tail":"\/event\/burke-area-farmers-market-2025-09-25-burke-sd.html"}}}},{"Event":{"_id":{"title":"Twin Rivers Old Iron Harvest Festival","venue_name":"Twin Rivers Old Iron Association","city":"Delmont","state":"SD"},"id":ObjectId ("68793951384bf9134e0334b8"),"city":"Delmont","cvent_id":null,"cvent_status":null,"date_string":"Friday, Sep 12, 2025 at 6:00pm","time_string":"6:00 PM","distance":39.728675944954574,"end":"MongoDate(0.00000000 1757707200)","event_id":75921142,"featured":"","geo":[-98.1732397,43.2685968],"group_key":"75921142","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Delmont, SD","repeat_id":"","search_text":"Twin Rivers Old Iron Harvest Festival, Twin Rivers Old Iron Association, 40084 284th St, Delmont, twin rivers iron association delmont historical society will hosting harvest kuchen festivalschedule events am dark exhibitor setup parking pm vendor setup bbqfront gate closes dark","sef_tail":"\/event\/twin-rivers-old-iron-harvest-festival-2025-09-12-delmont-sd.html","start":"MongoDate(0.00000000 1757700000)","state":"SD","tags":["festival","food-festival","seasonal","step-outside","september","arts-and-entertainment"],"title":"Twin Rivers Old Iron Harvest Festival","town_sef_url":"delmont-sd","venue_name":"Twin Rivers Old Iron Association","dates":{"1":{"start":"MongoDate(0.00000000 1757750400)","date_string":"Saturday, Sep 13, 2025 at 8:00am","sef_tail":"\/event\/twin-rivers-old-iron-harvest-festival-2025-09-13-delmont-sd.html"},"2":{"start":"MongoDate(0.00000000 1757833200)","date_string":"Sunday, Sep 14, 2025 at 7:00am","sef_tail":"\/event\/twin-rivers-old-iron-harvest-festival-2025-09-14-delmont-sd.html"}}}}],"params":"{\"title\":\"Events Near Fairfax SD\",\"keyword\":\"\",\"radius\":45,\"limit\":15,\"page\":1,\"sef\":\"\",\"tags\":\"\",\"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\":43.028499603271484,\"lng\":-98.88839721679688,\"latlng\":\"43.028499603271,-98.888397216797\",\"count\":1}","modified":"MongoDate(0.84200000 1756612193)","created":"MongoDate(0.84200000 1756612193)"} , true) | | 0 | 0 | 2 |