8 | db.events.find( {"aggregate":[{"$geoNear":{"near":[-81.0416030883789,35.23889923095703],"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 | 4 | 37 |
11 | db.events_cache.insert( {"_id":"a6d83998c976138d0cf330940a6afa0f","data":[{"Event":{"_id":{"title":"Matthews Alive Labor Day Festival","venue_name":"Stumptown Park","city":"Matthews","state":"NC"},"id":ObjectId ("68793954384bf9134e033c0f"),"city":"Matthews","cvent_id":null,"cvent_status":null,"date_string":"Saturday, Aug 30, 2025 at 9:30am","time_string":"9:30 AM","distance":19.922328730263672,"end":"MongoDate(0.00000000 1756591200)","event_id":75930896,"featured":"","geo":[-80.7234124,35.1151614],"group_key":"75930896","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Matthews, NC","repeat_id":"","search_text":"Matthews Alive Labor Day Festival, Stumptown Park, 120 S Trade Street, Matthews, join matthews alive labor festivalschedule events am parade through downtown matthewsam dilling small shops sponsor exhibits carnival food vendors openam community center building opensmain stage mixtape side festival tunes wshafer pm nathan morgan band petty rewind tina turner tribute ft debby holidaychildrenstagepm corky magic clownpm gravity checkpm jolly roger piratepm steve brogan comic ventriloquistcommunity woodworkers show piedmont fiber guild weaving spinning exhibit robotics basket woodcarvers demo sweet union quilt inside aircondcommunity indoor music cond brad bailey guitarist theater lobby thirsty horses stagemcdowell artist","sef_tail":"\/event\/matthews-alive-labor-day-festival-2025-08-30-matthews-nc.html","start":"MongoDate(0.00000000 1756546200)","state":"NC","tags":["seasonal","august","festival","other-festival","parade","carnival","step-outside","arts-and-entertainment"],"title":"Matthews Alive Labor Day Festival","town_sef_url":"matthews-nc","venue_name":"Stumptown Park","dates":{"1":{"start":"MongoDate(0.00000000 1756645200)","date_string":"Sunday, Aug 31, 2025 at 1:00pm","sef_tail":"\/event\/matthews-alive-labor-day-festival-2025-08-31-matthews-nc.html"},"2":{"start":"MongoDate(0.00000000 1756717200)","date_string":"Monday, Sep 1, 2025 at 9:00am","sef_tail":"\/event\/matthews-alive-labor-day-festival-2025-09-01-matthews-nc.html"}}}},{"Event":{"_id":{"title":"Saint Anne International Festival","venue_name":"St Anne Catholic Church","city":"Rock Hill","state":"SC"},"id":ObjectId ("68793950384bf9134e033244"),"city":"Rock Hill","cvent_id":null,"cvent_status":null,"date_string":"Friday, Sep 12, 2025 at 5:00pm","time_string":"5:00 PM","distance":20.58368989584826,"end":"MongoDate(0.00000000 1757714400)","event_id":75918850,"featured":"","geo":[-81.0010564,34.9431771],"group_key":"75918850","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Rock Hill, SC","repeat_id":"","search_text":"Saint Anne International Festival, St Anne Catholic Church, 1694 Bird St, Rock Hill, rock hillrsquobeloved festival year over different countries represented experience variety delicious authentic foods live entertainment handmade craftssomething everyone food amp beverages entertainment adult kidrsquogames inflatables silent auction sweet treats vendors international cultural events","sef_tail":"\/event\/saint-anne-international-festival-2025-09-12-rock-hill-sc.html","start":"MongoDate(0.00000000 1757696400)","state":"SC","tags":["festival","other-festival","live-music","step-outside","seasonal","september","arts-and-entertainment"],"title":"Saint Anne International Festival","town_sef_url":"rock-hill-sc","venue_name":"St Anne Catholic Church","dates":{"1":{"start":"MongoDate(0.00000000 1757772000)","date_string":"Saturday, Sep 13, 2025 at 2:00pm","sef_tail":"\/event\/saint-anne-international-festival-2025-09-13-rock-hill-sc.html"}}}},{"Event":{"_id":{"title":"Iron City Festival","venue_name":"","city":"Blacksburg","state":"SC"},"id":ObjectId ("68793956384bf9134e033fd3"),"city":"Blacksburg","cvent_id":null,"cvent_status":null,"date_string":"Saturday, Sep 13, 2025 at 11:00am","time_string":"11:00 AM","distance":28.04801473527176,"end":"MongoDate(0.00000000 1757782800)","event_id":75942481,"featured":"","geo":[-81.51439666748047,35.1161003112793],"group_key":"75942481","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Blacksburg, SC","repeat_id":"","search_text":"Iron City Festival, , Downtown Blacksburg, Blacksburg, each year this festival draws thousands people enjoy family fun consists street fair with numerous vendors including arts amp crafts food retail informative exhibits live entertainment much morefestival activities am tonbsp nbsp pmlive musicfood food trucks vendors","sef_tail":"\/event\/iron-city-festival-2025-09-13-blacksburg-sc.html","start":"MongoDate(0.00000000 1757761200)","state":"SC","tags":["festival","other-festival","live-music","food-truck","craft-fair-show","arts-and-crafts","step-outside","seasonal","september","arts-and-entertainment"],"title":"Iron City Festival","town_sef_url":"blacksburg-sc","venue_name":"","dates":[]}},{"Event":{"_id":{"title":"Old Town Fall Festival","venue_name":"Fountain Park","city":"Rock Hill","state":"SC"},"id":ObjectId ("68793956384bf9134e0341bc"),"city":"Rock Hill","cvent_id":null,"cvent_status":null,"date_string":"Saturday, Sep 27, 2025 at 12:00pm","time_string":"12:00 PM","distance":21.825728774096646,"end":"MongoDate(0.00000000 1758999600)","event_id":75946198,"featured":"","geo":[-81.0239028930664,34.92369842529297],"group_key":"75946198","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Rock Hill, SC","repeat_id":"","search_text":"Old Town Fall Festival, Fountain Park, 300 East Main Street, Rock Hill, join fountain park transform into carnival ages","sef_tail":"\/event\/old-town-fall-festival-2025-09-27-rock-hill-sc.html","start":"MongoDate(0.00000000 1758974400)","state":"SC","tags":["festival","other-festival","seasonal","step-outside","september","carnival","arts-and-entertainment"],"title":"Old Town Fall Festival","town_sef_url":"rock-hill-sc","venue_name":"Fountain Park","dates":[]}}],"params":"{\"title\":\"Upcoming Festivals and Fairs Near Belmont NC\",\"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.23889923095703,\"lng\":-81.0416030883789,\"latlng\":\"35.238899230957,-81.041603088379\",\"count\":2}","modified":"MongoDate(0.14400000 1756604822)","created":"MongoDate(0.14400000 1756604822)"} , true) | | 0 | 0 | 3 |