| 6 | db.events.find( {"aggregate":[{"$geoNear":{"near":[-120.14099884033203,34.59600067138672],"distanceField":"distance","distanceMultiplier":3963.2,"maxDistance":0.006308033911990311,"spherical":true,"query":{"start":{"$gte":"MongoDate(0.00000000 1766728800)"}}}},{"$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":3}]}, [] ).sort( {"start":1,"id":1} ).limit( 3 ).skip( 0 ) | | 0 | 3 | 12 |
| 9 | db.events_cache.insert( {"_id":"ab9501bfc60755fac0cdf5083f8928ff","data":[{"Event":{"_id":{"title":"Camino Real Center Farmers Market","venue_name":"","city":"Goleta","state":"CA"},"id":ObjectId ("687938d5384bf9134e014eb3"),"city":"Goleta","cvent_id":null,"cvent_status":null,"date_string":"Sunday, Dec 28, 2025 at 10:00am","time_string":"10:00 AM","distance":9.287990415550903,"end":"MongoDate(0.00000000 1766930400)","event_id":74671747,"featured":"","geo":[-120.04000091552734,34.4906005859375],"group_key":"3198729","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Goleta, CA","repeat_id":"3198729","search_text":"Camino Real Center Farmers Market, , 7004 Marketplace Drive, Goleta, seasonnbspyear round market hours sundaysamlocationnbsp marketplace drive","sef_tail":"\/event\/camino-real-center-farmers-market-2025-12-28-goleta-ca.html","start":"MongoDate(0.00000000 1766916000)","state":"CA","tags":["farmers-market","step-outside","aarp","open-year-round","clubs-and-organizations"],"title":"Camino Real Center Farmers Market","town_sef_url":"goleta-ca","venue_name":"","dates":[]}},{"Event":{"_id":{"title":"Route One Farmers Market","venue_name":"","city":"Lompoc","state":"CA"},"id":ObjectId ("687938d6384bf9134e015325"),"city":"Lompoc","cvent_id":null,"cvent_status":null,"date_string":"Sunday, Dec 28, 2025 at 10:00am","time_string":"10:00 AM","distance":17.19266079221801,"end":"MongoDate(0.00000000 1766930400)","event_id":74678546,"featured":"","geo":[-120.43499755859375,34.65299987792969],"group_key":"3198864","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Lompoc, CA","repeat_id":"3198864","search_text":"Route One Farmers Market, , 3745 Constellation Road, Lompoc, seasonnbspyear round market hours sundays am locationnbsp constellation road","sef_tail":"\/event\/route-one-farmers-market-2025-12-28-lompoc-ca.html","start":"MongoDate(0.00000000 1766916000)","state":"CA","tags":["farmers-market","step-outside","aarp","open-year-round","clubs-and-organizations","2025-updated"],"title":"Route One Farmers Market","town_sef_url":"lompoc-ca","venue_name":"","dates":[]}},{"Event":{"_id":{"title":"Orcutt Farmers Market","venue_name":"","city":"Santa Maria","state":"CA"},"id":ObjectId ("68793929384bf9134e02b10d"),"city":"Santa Maria","cvent_id":null,"cvent_status":null,"date_string":"Tuesday, Dec 30, 2025 at 10:00am","time_string":"10:00 AM","distance":22.461028967625023,"end":"MongoDate(0.00000000 1767099600)","event_id":75774641,"featured":"","geo":[-120.40399932861328,34.83829879760742],"group_key":"3199147","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Santa Maria, CA","repeat_id":"3199147","search_text":"Orcutt Farmers Market, , 4852 South Bradley Road, Santa Maria, seasonnbspyear round market hours tuesdays amlocationnbsp south bradley road","sef_tail":"\/event\/orcutt-farmers-market-2025-12-30-santa-maria-ca.html","start":"MongoDate(0.00000000 1767088800)","state":"CA","tags":["farmers-market","step-outside","aarp","open-year-round","clubs-and-organizations"],"title":"Orcutt Farmers Market","town_sef_url":"santa-maria-ca","venue_name":"","dates":[]}}],"params":"{\"show\":3,\"max-miles\":\"25\",\"max-days\":\"120\",\"keyword\":\"\",\"radius\":25,\"limit\":15,\"page\":1,\"sef\":\"\",\"tags\":\"\",\"tags_logical\":\"\",\"terms\":\"\",\"show_limit\":3,\"sort\":\"\",\"days\":\"120\",\"images\":\"yes\",\"message\":\"\",\"min\":20,\"title\":\"\",\"prompt\":\"\",\"height\":\"\",\"width\":\"\",\"more\":\"yes\",\"autoshowmore\":\"no\",\"link\":\"\",\"showdesc\":\"yes\",\"rankby\":\"distance\",\"type\":\"\",\"ad_slots\":\"\",\"see-more-title\":\"\",\"searchdate\":\"\",\"lat\":34.59600067138672,\"lng\":-120.14099884033203,\"latlng\":\"34.596000671387,-120.14099884033\",\"count\":1}","modified":"MongoDate(0.52600000 1766772102)","created":"MongoDate(0.52600000 1766772102)"} , true) | | 0 | 0 | 2 |