7 | db.events.find( {"aggregate":[{"$geoNear":{"near":[-89.53469848632812,35.412899017333984],"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 | 2 | 11 |
10 | db.events_cache.insert( {"_id":"0eadee2aa48235f26af1ccc740c3e44e","data":[{"Event":{"_id":{"title":"Delta Fair And Music Festival","venue_name":"Delta Fair And Music Festival Ground","city":"Memphis","state":"TN"},"id":ObjectId ("68793955384bf9134e033eff"),"city":"Memphis","cvent_id":null,"cvent_status":null,"date_string":"Saturday, Aug 30, 2025 at 11:00am","time_string":"11:00 AM","distance":25.99178668585084,"end":"MongoDate(0.00000000 1756594800)","event_id":75941647,"featured":"","geo":[-89.84449768066406,35.1349983215332],"group_key":"75941647","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Memphis, TN","repeat_id":"","search_text":"Delta Fair And Music Festival, Delta Fair And Music Festival Ground, 7777 Walnut Grove Road, Memphis, annual fair music festival that exciting interactive educational will strive bring communities together with safe wholesome family entertainment while celebrating promoting rich art music history delta schedule childrenrsquobarnyardmechanical bull ridespetting zoopm junior beef heifer show showmanshippm baby miss pageanttiny pageantwee pageantpm breeding showmanshipjunior pageantlittle pageantpreteen pageantrastelli circusyoung jurassic kingdom dinosaur showpm showlady houdiniteen rastelli circuspm lady houdinipm circus click here tickets","sef_tail":"\/event\/delta-fair-and-music-festival-2025-08-30-memphis-tn.html","start":"MongoDate(0.00000000 1756551600)","state":"TN","tags":["seasonal","fair","festival","music-festival","step-outside","august","circus","arts-and-entertainment"],"title":"Delta Fair And Music Festival","town_sef_url":"memphis-tn","venue_name":"Delta Fair And Music Festival Ground","dates":{"1":{"start":"MongoDate(0.00000000 1756638000)","date_string":"Sunday, Aug 31, 2025 at 11:00am","sef_tail":"\/event\/delta-fair-and-music-festival-2025-08-31-memphis-tn.html"},"2":{"start":"MongoDate(0.00000000 1756724400)","date_string":"Monday, Sep 1, 2025 at 11:00am","sef_tail":"\/event\/delta-fair-and-music-festival-2025-09-01-memphis-tn.html"},"3":{"start":"MongoDate(0.00000000 1756828800)","date_string":"Tuesday, Sep 2, 2025 at 4:00pm","sef_tail":"\/event\/delta-fair-and-music-festival-2025-09-02-memphis-tn.html"},"4":{"start":"MongoDate(0.00000000 1756890000)","date_string":"Wednesday, Sep 3, 2025 at 9:00am","sef_tail":"\/event\/delta-fair-and-music-festival-2025-09-03-memphis-tn.html"},"5":{"start":"MongoDate(0.00000000 1757001600)","date_string":"Thursday, Sep 4, 2025 at 4:00pm","sef_tail":"\/event\/delta-fair-and-music-festival-2025-09-04-memphis-tn.html"},"6":{"start":"MongoDate(0.00000000 1757062800)","date_string":"Friday, Sep 5, 2025 at 9:00am","sef_tail":"\/event\/delta-fair-and-music-festival-2025-09-05-memphis-tn.html"},"7":{"start":"MongoDate(0.00000000 1757156400)","date_string":"Saturday, Sep 6, 2025 at 11:00am","sef_tail":"\/event\/delta-fair-and-music-festival-2025-09-06-memphis-tn.html"},"8":{"start":"MongoDate(0.00000000 1757242800)","date_string":"Sunday, Sep 7, 2025 at 11:00am","sef_tail":"\/event\/delta-fair-and-music-festival-2025-09-07-memphis-tn.html"}}}},{"Event":{"_id":{"title":"Porchfest","venue_name":"","city":"Jackson","state":"TN"},"id":ObjectId ("68793951384bf9134e03358c"),"city":"Jackson","cvent_id":null,"cvent_status":null,"date_string":"Saturday, Sep 13, 2025 at 4:00pm","time_string":"4:00 PM","distance":42.56404205173534,"end":"MongoDate(0.00000000 1758310200)","event_id":75922114,"featured":"","geo":[-88.81890106201172,35.610801696777344],"group_key":"75922114","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Jackson, TN","repeat_id":"","search_text":"Porchfest, , Wisdom St and Crescent Ave, Jackson, porchfest moving summer avoid july heat give most pleasant evening enjoying incredible music midtown addition great lineup installations this yearporchfest will also feature first ever poetry porch with griot collective west tennessee kids stage music alice jackson theatre guild","sef_tail":"\/event\/porchfest-2025-09-13-jackson-tn.html","start":"MongoDate(0.00000000 1757779200)","state":"TN","tags":["seasonal","festival","other-festival","step-outside","september","live-music","outdoor-music","arts-and-entertainment"],"title":"Porchfest","town_sef_url":"jackson-tn","venue_name":"","dates":[]}}],"params":"{\"title\":\"Upcoming Festivals and Fairs Near Mason TN\",\"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\":35.412899017333984,\"lng\":-89.53469848632812,\"latlng\":\"35.412899017334,-89.534698486328\",\"count\":0}","modified":"MongoDate(0.65100000 1756613746)","created":"MongoDate(0.65100000 1756613746)"} , true) | | 0 | 0 | 2 |