<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Aditya Prasad N on Medium]]></title>
        <description><![CDATA[Stories by Aditya Prasad N on Medium]]></description>
        <link>https://medium.com/@adityaprasadn?source=rss-9ea2d002fec3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ds_1sbXWkUty74Tg.jpeg</url>
            <title>Stories by Aditya Prasad N on Medium</title>
            <link>https://medium.com/@adityaprasadn?source=rss-9ea2d002fec3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 17:11:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adityaprasadn/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The IRONMAN Journey -Part 2 -Race report]]></title>
            <link>https://medium.com/@adityaprasadn/the-ironman-journey-part-2-race-report-f06145c33f07?source=rss-9ea2d002fec3------2</link>
            <guid isPermaLink="false">https://medium.com/p/f06145c33f07</guid>
            <category><![CDATA[swimming]]></category>
            <category><![CDATA[triathlon]]></category>
            <category><![CDATA[ironman]]></category>
            <category><![CDATA[cycling]]></category>
            <category><![CDATA[running]]></category>
            <dc:creator><![CDATA[Aditya Prasad N]]></dc:creator>
            <pubDate>Sun, 14 Oct 2018 13:16:48 GMT</pubDate>
            <atom:updated>2018-10-18T19:52:04.810Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TAOiVEgW2QTp5Z-HdH8hYw.jpeg" /></figure><p>This post is Part 2 of my Journey to become an Ironman. <a href="https://medium.com/@adityaprasadn/the-ironman-journey-part-2-race-report-f06145c33f07">Part 1</a> is a pre-race training and preparation post and Part 2 is a detailed race report post.</p><p>One 22 September 2018, Ironman Italy was scheduled for flag-off at 07:30 CEST. I woke up at 05:00 and walked 6km to reach the venue. The transition area for IRONMAN Italy is really long. The walk from Athlete garden where you drop off your street bag to the other end of the transition area is about ~12mins. I suggest participants to avoid last minute hassle and sort out everything early in the day.</p><h4>The Swim (1h 40min): 🙀</h4><p>First leg of this Ironman is a 3.8km swim in the Adriatic sea with rolling start and an Australian exit at 2.2km. I paced myself in the slow 1h:20min finish as I wanted to come fresh out of the swim to keep my heart rate low for the run through transition area. I came to know there are a lot of jelly fish and can sting really bad but they’re non-poisonous. My past diving experiences with jelly fish were unpleasant and hoped I wouldn’t come across any. I entered the water at around 8am with 16 hours to become IRONMAN.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*zjwd1E-4syjRgbUhMAbyVA.png" /></figure><p>Water had moderate visibility and I hoped it wouldn’t be so murky. 300m in, I spotted the first jelly fish and swam in a direction to avoid it. All through the swim, I wasn’t sighting the markers and turns properly as my priority was to avoid those jelly fish. Because of so many jelly fish, I swam an extra 600m, a total of about 4.4km @2:19/100m pace. But you don’t get brownie points for extra distance. I lost valuable time. Ironman clocked the 3.8km route in 1h:42min @2:41/100m pace. Looking back at the race, I was really slow on this swim.</p><h4>Transition 1 (15min): 👌</h4><p>This is where you come out of the swim, pick up your blue bag which has all your cycling gear, dry yourself, change in the tents, put your swimming gear back in the blue bag and hand it over to be collected after the race. I entered the transition zone with 20mins behind target pace. No worries! I can make up for it later. I read on a few TrainingPeaks articles not to eat or drink during this Transition till 15mins on the bike. But I felt dehydrated and low on energy. So I ate a few dry fruits and tried to remain calm to bring down my heart rate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*VgB5nAMzQUp8-O_ZS2mUgg.png" /></figure><h4>The Bike (8h): 😢</h4><p>Ironman Italy Bike course is 2 loops of 90km starting from Cervia to steep climb of Bertinoro and back totalling 180km. I can’t go fast on the bike as I can’t risk a meniscus tear from a diagnosed Discoid LM condition. Before I could mount the bike, I had a mechanical problem with the chain. With some effort everything was sorted but little did I know it was the first of many unfortunate things to follow. My heart rate was high for the next 20mins which is probably because of the nutrition from T1. I kept to a slow 26kmph pace doing ~120W. This pace is good for a 7 hour finish.</p><p>1 hour into the bike, I had a <em>fatal crash</em> at a sharp turn with a rider coming in the opposite direction. He was trying to overtake a rider in-front of him and came into the wrong lane and rammed into my left shoulder. My memory is blurred as I lost consciousness for a while and couldn’t breathe properly. I wouldn’t bother the reader with the appalling details of the incident. Luckily the paramedics were there. I was slightly bleeding from my right thigh and breathing heavily and was in such a shock that I couldn’t get back on the bike. That was my first crash on the bike.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/229/1*R-gfupCyvzvE4o9lBSpYJg.jpeg" /></figure><p>Luckily I absorbed most of the impact and my bike remained intact 😐. Any major damage to the bike would’ve resulted in loss of time or DNF. In a couple of minutes, I regained my composure and started riding again. With the adrenaline rush and higher heart rate, I couldn’t grasp the full extent of damage. About 5kms later, I realised I couldn’t put weight on my left shoulder and going into aerodynamic position is ruled out. I had to ride slow now. During the crash, I lost my salt tablets and nutrition. I felt that the Enervit drink provided on course was heavily diluted and this was to cause problems later on. I was drinking 1 litre of water every hour and taking 1 energy gel every 45mins.</p><p>At the turn of 90km, I realised I’m falling behind pace. I need to maintain a 30kmph to clear the 10h cutoff for swim+bike. I was holding the aero bars with my right hand and keeping minimum pressure on the left shoulder. There’s no point going at comfortable pace now. It’s do or die time. I put the hammer down and relegated comfort to the back of my mind. If my knee pain comes back, I’ll stop the ride and DNF. If not, I’ll power through till the end. With 25km to go, I got cramps all over my legs. I had to stop riding multiple times. Winds were picking up at crazy speed. My knee pain started acting up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/244/1*OW4ZQTIvhYxXcf7b0pdJ-g.jpeg" /></figure><p>Multiple feelings started reeling in. That crash demotivated me and I lost my confidence and game plan. Every time I stopped to relieve my cramps, I thought this it, this is where it ends. I wanted to give up this useless pursuit and probably never come back to IRONMAN. I’m happy with my current levels of fitness. Why should I put this huge effort risking injury in the odds of narrowly missing cutoff? But <em>I decided to shut my brain</em> and endure the suffering to power through.</p><p>If there is one thing I trained for all these years, that’s <em>to be comfortable with suffering and enduring the pain for long</em>. I didn’t look at my watch to check for time. I remembered my <a href="https://www.strava.com/activities/1414208523">600km BRM ride</a> where I barely cleared cutoffs even in a state of mental exhaustion and no sleep for 30 hours. Right now this is only physical exhaustion. I can endure it. So I pushed through with my head down and cleared cutoff with 3mins to go 😌</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FiL6hftHw-Bg%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DiL6hftHw-Bg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FiL6hftHw-Bg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0d36302602fbab58a1812c0006a5edbe/href">https://medium.com/media/0d36302602fbab58a1812c0006a5edbe/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*Z74n4obDj3rtI2p8GyBBig.png" /></figure><p>Total time 9h:57min/16hours</p><h4>Transition 2: (9min) ☺️</h4><p>It’s a short 1km long transition off the bike into the run start :) I could feel the cramps coming back. Luckily I had extra salt tablets in my Red running transition bag. I popped one in and hurried for the run just to clear the transition cutoff, if any.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*YeBvYH7IC6gELiBfGoY4Xg.png" /></figure><p>Total time 10h:09min/16hours</p><h4><strong>The Run: (scroll down) 👌</strong></h4><p>The run is 4 loops of 10km through Cervia. I remember a volunteer saying, <em>Hey! It’s just a marathon now. You can do it.</em> I have 5h and 50min and a marathon to finish with cramps. I was feeling refreshed after that transition and I didn’t want to push myself early on and end up with a DNF because of cramps. I knew from my swimming days that it takes me about an hour to recover from cramps after taking salts. By now I had gulped in so much water and energy gels that walking was the only option.</p><p><strong>New strategy:</strong> Walk/Jog for the first 15kms in 2 hours till I feel completely in control. By then, the gels and water would’ve been digested and hopefully I don’t have to deal with cramps. I stopped drinking water and I was taking salt tablets every 40mins. I started feeling good after an hour of 9min/km pace. Everyone around me is in their 3rd or 4th loop motivating themselves thinking it’s just 1 loop to go. I’m still in my first loop. That’s ok!</p><p>After the first loop, I could feel my running legs coming back and no signs of cramps. Don’t go hard now! I can pull through in the end. So I started slow jog to get into the tempo and slowly started picking up pace. It wasn’t the finish line celebrations or the IRONMAN title that pushed me. I committed to this cause. It was the <em>determination to see this through </em>that kept me going.</p><p>On the 20–40km route, I started running at a comfortable 7min/km with some stretching in between. I was running with 5km targets and treating myself to a salt tablet every now and then. I had a long day with energy gels and I can’t take anymore of it but I forcibly shoved it down my throat towards the end. It was necessary. I didn’t drink water for most of the run and it’s only in the last 10kms I started taking some fluids. I guess this ensured proper electrolyte balance in the body. I should’ve had just fluids and no water all day?!</p><p>All through the bike and run, I didn’t think I could finish on time but I wanted to see where I would fall and where I can draw a line to my physical ability. Lucky for me, I didn’t find any. Sometimes it’s only a psychological barrier. I picked up the pace towards the end enduring pain. In the end, with 1km to go, a woman was cheering ‘<em>Congratulations Ironman, you did it. Just 1km to go!</em>’ That was the moment I realised I’ll finish and I can start enjoying the last few steps. Those words gave me a huge relief even more than the lead announcer at the finish line with the words.</p><blockquote>Aditya, You are an IRONMAN!</blockquote><p>Run finish: 5h:39min<br>Race finish: 15h:44min</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*lcKyM2_U-4WWBQ5r6Vv8PA.png" /></figure><p>This race time of 15+h was something I wasn’t happy with but I’ll take the finish and consider it a win for a day that went bad. Race day gave me a lot of memories, experiences which I’ll cherish for a long time. A lot of things can go wrong on race day. Most of which you’re not prepared for. You want to quit almost all the time because of several reasons. You think of every reason why you shouldn’t continue anymore and why it’s pointless pursuing this craziness. But you must persist in the moment of doubt and uncertainty. And in the end, is it worth it?</p><p>The title, No! The memories and experience? Yes!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/159/1*-Uk5yPUzqG1EWRKrqsrsUw.jpeg" /></figure><p>Coming to the experience of Emilia-Romagna(Italy) as a destination for Ironman, it was wonderful with a few problems of its own. The calm sea is good for your first Ironman swim if you can figure out how to deal with jelly fish. The long transition zones are not for people who’re chasing after PB or cutting close to cutoffs. The bike route was scenic with 2 steep climbs and the roads could’ve been faster tarmac. Be careful with the narrow and sharp turns. Winds start building up during the race week and just 2 days after the race, there were strong 45kmph winds. The run was memorable with locals coming down to cheer under the moonlight. Finish line celebrations are a spectacle to watch. There are lots of scenic destinations in Italy to visit post your race. After a few days of rest, I rode my bike from one city to the other. It was wonderful! The journey of IRONMAN was a memorable one.</p><p>I hope my training and racing experience motivates you to take up this wonderful sport, help you in your journey and get you prepared for race day of IRONMAN.</p><p>#swimbikerun #trilife #triathlon #ironman #endurance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/250/1*S9vLvpwG95GL-i1YDj9_Qw.jpeg" /><figcaption>It’s an experience!</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f06145c33f07" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The IRONMAN Journey -Part 1 -Training]]></title>
            <link>https://medium.com/@adityaprasadn/the-ironman-journey-part-1-training-b257701ff25a?source=rss-9ea2d002fec3------2</link>
            <guid isPermaLink="false">https://medium.com/p/b257701ff25a</guid>
            <category><![CDATA[cycling]]></category>
            <category><![CDATA[running]]></category>
            <category><![CDATA[swimming]]></category>
            <category><![CDATA[triathlon]]></category>
            <category><![CDATA[ironman]]></category>
            <dc:creator><![CDATA[Aditya Prasad N]]></dc:creator>
            <pubDate>Sat, 13 Oct 2018 15:20:09 GMT</pubDate>
            <atom:updated>2018-10-20T09:20:10.955Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TAOiVEgW2QTp5Z-HdH8hYw.jpeg" /></figure><p>This is a 2 part series of my journey to become an Ironman. Part 1 is a pre-race training and preparation post and <a href="https://medium.com/@adityaprasadn/the-ironman-journey-part-2-race-report-f06145c33f07">Part 2</a> is a detailed race report post. I hope this series motivates you to take up this wonderful sport and help you become an IRONMAN. #swimbikerun</p><h4>Prior Experience:</h4><p>I started 2018 with my first 42km run, Mumbai Marathon and long distance cycling(Audax-Randonneuring). I finished a series of ultra-distance cycling events of <a href="https://www.strava.com/activities/1671449021">200km</a>, <a href="https://www.strava.com/activities/1537454530">300km</a>, <a href="https://www.strava.com/activities/1378722124"><strong><em>400km</em></strong></a> and <a href="https://www.strava.com/activities/1414208523"><strong>600km</strong></a> each within a stipulated cutoff time to earn the Super randonneur(SR) title.</p><p>I wrote a detailed post on the 400km <a href="https://medium.com/@adityaprasadn/randonneuring-mumbai-valsad-mumbai-400km-audaxindia-brm-9f3c21bc7137">here</a>. The 600km ride was a tough nut with 5200m elevation and 30+hours on the saddle. I learned a lot from this ride, especially managing nutrition and hydration.</p><p>I was a regular swimmer doing swimathons(12h continuous swims. 14–16km) almost every year. By mid-2018 I could comfortably finish most of the long distance events of swim-bike-run discipline with decent pace. In 2017 I raced in the Pune International Triathlon in extreme heat and no preparation to finish Half-Ironman distance in under 8 hours. I had the distances and prior triathlon experience. So the next obvious goal was IRONMAN.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*o0S6wHGZPVfezAks0r-_Qg.png" /><figcaption>swim-bike-run</figcaption></figure><blockquote>Swim 2.4 miles! Bike 112 miles! Run 26.2 miles! Brag for the rest of your life.</blockquote><p>Inspirational words but I wasn’t sure of participating in an official IRONMAN distance owing to the cost($$$$$) and dedication to train(time and motivation). A gentle push from my friends <a href="https://twitter.com/ArchieIndian">Arkid</a> and <a href="https://www.facebook.com/neha.s.agarwal.5">Neha</a>, and I registered for IRONMAN Italy 2018. The event is scheduled for 22 September. I have barely 3 months to train. People usually train for a year with a plan. What was I thinking? 🙄</p><h4>Targets:</h4><p>I struggled to finish my first marathon(5h40min) with dehydration and flat-foot problems. My comfortable cycling speed was 25kmph and ~36kmph for 1-hour race pace. All these indicate I can barely finish IRONMAN Italy(cutoff time- 16 hours). I wanted to aim for the following splits:</p><pre><strong>Swim:</strong> ~4km (1h:20min @ 2:00min/100m)<br><strong>Transition-1</strong>: 15mins (Italy has the world’s longest transition)<br><strong>Bike</strong>: 180km (7h @ 26kmph)<br><strong>Transition-2:</strong> 10mins<br><strong>Run:</strong> 42km (5h @ 7:00min/km)<br><strong>Target finish time:</strong> 13h:45min </pre><p>I can go a bit faster on the bike but I need fresh legs for the marathon as I always get acute pain in the lower legs post 25km(later on to be diagnosed arising from flat-foot). A few blogs suggested that as a first timer one should aim to build aerobic capacity and race comfortably as several things can go wrong on race day. So I didn’t have any extraordinary targets owing to just 3 months of training and no triathlons in the past 1.5 years.</p><h4><strong>pre-Training phase:</strong></h4><p>In the last week of June, I experimented with a few training plans for IRONMAN distance. I wasn’t comfortable with any of them. I finally found a free 16-week <a href="https://www.trainingpeaks.com/training-plans/triathlon/ironman/tp-130314/140-6-triathlon-plan-ends-on-race-day">plan</a> by Sufferfest, available on TrainingPeaks. I liked this plan because of the detailed bike workouts which aligned with improving my cycling splits. It also had yoga plans to increase my flexibility. This is an advanced level plan and it took me about 2 weeks to get used to the training volume and intensity.</p><p>For the first 2–3/16 weeks, I was replacing power based bike workouts with medium paced long rides. I never did the swim workouts as I thought I was comfortable with the swim leg. I did 2 ocean swims in earlier seas swims with a decent 2:30min/100m pace. Any major improvements in swim timings require consistent practice and I could probably save 10–15mins during the event. I was willing to sacrifice this race day saving to concentrate on the bike and run improvements.</p><h4><strong>Training:</strong></h4><p>As I was working full time with 3 hours of daily commute, I had less time to spare for training. Most of the days I woke up at 5am to finish the workouts, stretch and get ready for the long day ahead. Below are the TrainingPeaks snapshots of my planned and finished workouts.</p><p><a href="https://photos.google.com/share/AF1QipOEkvnOHDBXPoxd6spDeIVmkliMe1FruakpTKncnrWseiz-CI2P85Ju5BFCJdq0kA/photo/AF1QipMcSGrWZSMCYy5M9cMMOW0-OfGV4k94FJeSLFUh?key=a3NfTDFySGZRMkhSb0xfeGlhSmUybi1TaEhxaVh3">Week5</a> <a href="https://photos.google.com/share/AF1QipOEkvnOHDBXPoxd6spDeIVmkliMe1FruakpTKncnrWseiz-CI2P85Ju5BFCJdq0kA/photo/AF1QipM3PAIEOf2jS4qLqxaNWPiiVpfWnvkFw64umeVz?key=a3NfTDFySGZRMkhSb0xfeGlhSmUybi1TaEhxaVh3">Week6</a> <a href="https://photos.google.com/share/AF1QipOEkvnOHDBXPoxd6spDeIVmkliMe1FruakpTKncnrWseiz-CI2P85Ju5BFCJdq0kA/photo/AF1QipMPXy0AaH_N0JtVkHLC68XahHR5EGylrCJEatea?key=a3NfTDFySGZRMkhSb0xfeGlhSmUybi1TaEhxaVh3">Week7</a> <a href="https://photos.google.com/share/AF1QipOEkvnOHDBXPoxd6spDeIVmkliMe1FruakpTKncnrWseiz-CI2P85Ju5BFCJdq0kA/photo/AF1QipPdLcPP6AXmmqNPUbh8Goo7UOr9tgF00KQ726mz?key=a3NfTDFySGZRMkhSb0xfeGlhSmUybi1TaEhxaVh3">Week8</a> <a href="https://photos.google.com/share/AF1QipOEkvnOHDBXPoxd6spDeIVmkliMe1FruakpTKncnrWseiz-CI2P85Ju5BFCJdq0kA/photo/AF1QipPM9e3sDm-SGNNp4s9sAFZbH15N2TQn2DbubXDM?key=a3NfTDFySGZRMkhSb0xfeGlhSmUybi1TaEhxaVh3">Week9</a> <a href="https://photos.google.com/share/AF1QipOEkvnOHDBXPoxd6spDeIVmkliMe1FruakpTKncnrWseiz-CI2P85Ju5BFCJdq0kA/photo/AF1QipN3KuDWx8w6vKHTKM1jfXqDwTlrsfiV-vvtjr5I?key=a3NfTDFySGZRMkhSb0xfeGlhSmUybi1TaEhxaVh3">Week10</a> <a href="https://photos.google.com/share/AF1QipOEkvnOHDBXPoxd6spDeIVmkliMe1FruakpTKncnrWseiz-CI2P85Ju5BFCJdq0kA/photo/AF1QipNImm4eG_6bgj_LSHOsc3RqNFTN3Lnut23XFo0m?key=a3NfTDFySGZRMkhSb0xfeGlhSmUybi1TaEhxaVh3">Week11</a> <a href="https://photos.google.com/share/AF1QipOEkvnOHDBXPoxd6spDeIVmkliMe1FruakpTKncnrWseiz-CI2P85Ju5BFCJdq0kA/photo/AF1QipOKzj2qvCBMefaqnEPqoCWC2Z6D2iQ1nud4qgl0?key=a3NfTDFySGZRMkhSb0xfeGlhSmUybi1TaEhxaVh3">Week12</a> <a href="https://photos.google.com/share/AF1QipOEkvnOHDBXPoxd6spDeIVmkliMe1FruakpTKncnrWseiz-CI2P85Ju5BFCJdq0kA/photo/AF1QipMo2OGoK6RE1Iepk1TpJpv9c336fchGkJkMgZDg?key=a3NfTDFySGZRMkhSb0xfeGlhSmUybi1TaEhxaVh3">Week13</a> <a href="https://photos.google.com/share/AF1QipOEkvnOHDBXPoxd6spDeIVmkliMe1FruakpTKncnrWseiz-CI2P85Ju5BFCJdq0kA/photo/AF1QipNycWpDZBtBpRMKDXH1Gxce-TAc5NIOhtgZ863i?key=a3NfTDFySGZRMkhSb0xfeGlhSmUybi1TaEhxaVh3">Week14</a> <a href="https://photos.google.com/share/AF1QipOEkvnOHDBXPoxd6spDeIVmkliMe1FruakpTKncnrWseiz-CI2P85Ju5BFCJdq0kA/photo/AF1QipNvvdreJF8vHfvJl581fz1tVDjnASCH4QEZRBIm?key=a3NfTDFySGZRMkhSb0xfeGlhSmUybi1TaEhxaVh3">Week15</a> <a href="https://photos.google.com/share/AF1QipOEkvnOHDBXPoxd6spDeIVmkliMe1FruakpTKncnrWseiz-CI2P85Ju5BFCJdq0kA/photo/AF1QipNfi3PXzMl7ui8O4GAW718oaU2M6T27Z6ryi848?key=a3NfTDFySGZRMkhSb0xfeGlhSmUybi1TaEhxaVh3">Week16</a></p><p>Detailed training workouts are logged <a href="https://www.strava.com/athletes/12282243">here</a> on Strava.</p><p>Mumbai is a relatively tough place to train for recreational triathletes. My training period coincided with the Mumbai monsoons which meant limited outdoor training. I had access to a 50m swimming pool of my alma mater. Running track was far away for regular sessions and I had to travel 1 hour for my long runs. But it can be managed with planning and dedication. There is a healthy triathlon community here in Mumbai.</p><p>I got a fluid resistance Indoor bike trainer as a gift and time spent on the trainer made a lot of difference in my power outputs. Although I initially hated it, I came to love with the results. My FTP(Functional Threshold Power) improved from 170W in Week5 to 220W by Week12. I was on Cloud9. Everything is going well. What can go wrong now?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/233/1*OdQ8yzC0Ff3A3ucHcl6W1g.jpeg" /></figure><p>I was enjoying my workouts from Week5–11 but I overlooked stretching and resting as I was tired most of the time from training and daily commute. I lost my watch which meant I couldn’t train with HeartRate. In Week 12, during a 6-hour brick workout, I got severe pain in my right knee 2 hours into the ride. I pushed through nonetheless. Week 12–14 came with tight hamstrings, acute knee and shin pains. I couldn’t bike for more than 10–15mins. Runs were ok. Week 14, I was diagnosed with Discoid LM. A rare congenital anomaly and a tear started appearing in my meniscus. Doc suggested not to go into aero position and take 1-2 weeks off training. IRONMAN is just 2 weeks away now. 😲 😿 😭</p><p>Week12–16 I could do only 3–4 rides but used this spare time to concentrate more on the swim and runs. I’m glad I did a few swim workouts in the last 2–3 weeks as I lost my upper body strength and my swim technique fell apart. I was doing long runs coupled with a few short recovery runs. I didn’t include any sprint/fast paced runs just to avoid any injuries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*coqoaiOUWxwV83C8jX14rQ.jpeg" /></figure><p>In Week 15 I was happy with my sustained run pace and swim improvements but I knew I couldn’t ride comfortably for more than an hour. I was considering pulling out of the event to prevent major injury and save on the race week expenses. But I chose to give it a try going slow aiming not for time but for a finish.</p><p>Another most critical factor in Ironman training is nutrition. I healthy well-balanced diet helps fuel you through the increasing volume of training. Towards the end of my training regiment, I used to be tired most of the time and I resorted to not so healthy diet. As I’m a vegetarian, it was difficult to manage my micro-nutrients. I used to eat whatever I could get my hands on in the last 3 weeks leading up to the race. Your training is a reflection of your diet and what you feed your body.</p><p>I packed my bike in a cardboard box hoping the airline handles it gently. It was a tiring travel from Mumbai to Cervia(Italy) carrying the bike box and 2 bags on 2 trains and a bus. All alone. I should’ve rented a road bike near the event. It wasn’t worth the hassle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*HDjQk7xBOjmNFbO-081bhw.jpeg" /></figure><h4>IRONMAN village:</h4><p>I reached Cervia 3 days prior to race day and assembled my bike. I went for a slow medium run to explore the neighbourhood. I had mixed feelings about the next 2 days. Being a vegetarian, my dietary options in Europe are always limited. But I gorged on pizzas and pasta to get my carbs and dry fruits for fats and proteins. I stayed 8km from the event and it was a bit difficult going and coming back every day. But I used this opportunity to schedule my runs/walks.</p><p>I checked out the swim route and the water had poor visibility. My lack of sea swim practice sessions was giving me a few jitters. Day T-1, I finished registration and checked in my bike &amp; transition bags. I needed a few cycling and running accessories but everything was so expensive near the venue that I chose to make a few compromises. If I didn’t need it for training, I shouldn’t need it for race day right?!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*yeeCaYnZrDaCEWO1oalWUQ.gif" /></figure><p><a href="https://medium.com/@adityaprasadn/the-ironman-journey-part-2-race-report-f06145c33f07">Part 2</a> will be a detailed race day report. Thanks for reading it through 😃</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b257701ff25a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Randonneuring Mumbai-Valsad-Mumbai 400km AudaxIndia BRM]]></title>
            <link>https://medium.com/@adityaprasadn/randonneuring-mumbai-valsad-mumbai-400km-audaxindia-brm-9f3c21bc7137?source=rss-9ea2d002fec3------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f3c21bc7137</guid>
            <category><![CDATA[ultra-endurance]]></category>
            <category><![CDATA[randonneuring]]></category>
            <category><![CDATA[endurance]]></category>
            <category><![CDATA[cycling]]></category>
            <category><![CDATA[ironman]]></category>
            <dc:creator><![CDATA[Aditya Prasad N]]></dc:creator>
            <pubDate>Tue, 13 Feb 2018 18:05:54 GMT</pubDate>
            <atom:updated>2019-08-30T10:15:40.478Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*EPpMihxJToBKq1jf0FFCxA.png" /><figcaption>TLDR: <a href="https://www.strava.com/activities/1378722124">strava-activity</a></figcaption></figure><p>I wont make it easy on my readers to finish reading this post. Long way to go :D</p><h3>The Fitness Journey:</h3><p>My fitness journey started a couple of years ago in 2009 when I started swimming regularly. I thought I should kick it up, when I decided to run my first 21km in 2014. I saw a transformation video of <a href="https://www.youtube.com/watch?v=vGnAQqlrKoE">Levent Oz</a> using Freeletics. I was hooked to it and it carved me into the free-athlete I’m today. Along the way I picked up several adventure sports. A nothing good to do friend of mine, <a href="https://twitter.com/satyapraneethr">Praneeth</a> pushed me into participating in triathlons. I <a href="https://www.facebook.com/adityaprasadn/posts/1600442466640124">finished</a> an IRONMAN70.3 last year in March. Somehow I just found my calm and peace in this multi-disciplinary sport. I’ll keep writing a few experiences of my fitness journey in the coming posts.</p><p>After the Mumbai Marathon of 42.195kms on 21st Jan’18, I was feeling low because of my 5h 22min finish. My slowest marathon finish. Many of the athletes I follow on strava pushed for sub 4h. Accepted, I didn’t train enough and crossing the finish line in and itself was an achievement. But I couldn’t accept this timing. I wanted to come back hard and set a tone for this new year. I set my on eye on the Super Randonneur(SR). A title which you earn after completing a series of 200km, 300km 400km and a 600km at an Audax Parisien approved Brevet. Target locked. There was a 400km ride just a week after marathon, on 27th Jan’18. But I didn’t completely recover from the 42k run and I had literally zero preparation. But I needed it! Badly!!</p><p><strong>Previous Long distance riding:</strong></p><p>I used to muscle my way through the cycling legs of triathlons and I decided something should change. Late 2017, I bought a Cannondale Caad10 from a friend. Thanks <a href="https://twitter.com/satyapraneethr">Praneeth</a> and <a href="https://www.strava.com/athletes/4105703">Rudra</a>!! I then signed up with <a href="https://www.strava.com/clubs/PowaiPedals">PowaiPedals</a> and went for a few rides to get comfortable with this monster. I love the power delivery on this machine. Good investment in a roadie and a caad!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m0VAlIRx1r0i63VyvxTYPg.jpeg" /></figure><p>Finishing Ironman is on my bucket list and I came to realise it’ll remain a dream unless I improve my cycling splits. One day, PowaiPedals announced a Powai-Igatpuri-Powai endurance ride, <a href="https://www.strava.com/activities/1291394081">230km, 6500ft Elevation</a>. This event could help me understand the dynamics of a 180k ride for Ironman. I finished it with help from my fellow riders. It was a well organised event by GiantStrakken Powai. Refreshments and support vehicles all the way. That was my first long distance endurance ride. After 80km and 150km, I was counting every km and I was glad it was over. I told myself I will never come back to ride 200+.</p><p>But endurance sports are an addiction. The high you get after finishing an event, pushing yourself to the limits you thought were impossible to achieve, the sweet muscle soreness, the forged will power!! You keep dreaming big with time and so I had to go back for more.</p><h3>The Ride:</h3><p>Riders assembled at Secret Spice Restaurant in Mulund at 5am. I was late to the event. Every rider was supposed to do a few pre-flagoff checks.</p><ol><li>Hand over a signed waiver document</li><li>Collecting the brevet card to get stamps from check points(Every 100km)</li><li>Bike, helmet, front &amp; rear lights, name and number tags, reflective vest.. what not.</li></ol><p>Event Organiser Anil Uchil briefed about the ride and checkpoints. Which I missed! :( I started at about 7am, an hour late. Brevets are time constrained. For any event, you must finish the respective 100km in stipulated times. Irrespective of the route, confusions, personal mistakes, emergencies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*xVhJX48iZL5FClEM3rExKQ.png" /></figure><blockquote>100 Km — 6.5 Hrs | 200 Km — 13.5 Hrs | 300 Km — 20 Hrs | 400 Km — 27 Hrs | 600 Km — 40 Hrs | 1000 Km — 75 Hrs | 1200 Km — 90 Hrs</blockquote><p>But these were comfortable pace on a road bike with 15–16 kmph. I kept myself motivated and mentally prepared for the 400km ahead. I was enjoying the nature but mostly worried about the night ride, traffic, accident prone areas, ghats, pollution, slippage and every damn thing that would psychologically restrain me from pedalling forward. I had a bad running nose and my left knee was making weird sounds on uphills. I saw a few familiar faces from PP doing 200 BRM. I then went into a chain of thoughts as to why I’m attempting a 400 first instead of playing safe with the 200. Cursed myself for a while. The sunrise on my right and nice road(NH8) kept me going in an active state.</p><h3>101km Checkpoint(CP) Charoti:</h3><p>Charoti after 4hours. My fastest 100k till date :D I didn’t drink much water and had no electrolytes. Bad move!! Quads started cramping a bit. Drank a few glasses of enerzal, ate a banana, stretched a bit and started looking ahead. I came to a cross road where I can go straight and continue to the 200km CP or turn back with a DNF and be satisfied with a personal ride of 200k on strava. Something pushed me towards moving ahead and not turn back :)</p><p>My back started to ache from 120km. I knew that this day wasn’t going to be easy. It was 12pm and the sun was being a d**k to me. I debated about taking a break for lunch from 1–3pm and let the heat die down. But the very thought of wasting day light and exerting myself in the night didn’t go well with me. So I rode… Had water and Enerzal every 20mins alternatively. Crossed the Maharashtra border and then Gujarath checkpost. First time I cycled across states. It was scary and pumped up at the same time. By the time I reached the Daman road, things started getting chaotic @150km. Decided to stop for a quick lunch for 45mins but couldn’t find any nice restaurants. Now they’re all written in Gujarati language. Why God Why?!</p><p>@170km, I found a nice dhaba, ordered dal kichdi but he bought a masala kichdi. Why would I it eat in such heat? They replaced it with dal and jeera rice. I stretched for a bit, washed dirt and smoke off my face and sat down to feast. I feasted all right!! Informed friends and family about the current status and started for the next 30km. I wanted to rush faster so I can reach 300km CP where I can have a comfortable sleep. But the heat, long ride and sore bums took its toll. I couldn’t sit longer than 5min at a stretch. I needed some rest and stretching but I neglected my body’s demands.</p><h3>201km CP Valsad:</h3><p>I was counting every minute to 200km CP. Sugar &amp; Spice Restaurant . Nice of them to have billboards every km. I motivated a fellow rider to just push for the next 8km. Our volunteers were sitting in a cab parked on the side of the Highway waiting for us. I would’ve missed it if it weren’t for others. Got the Brevet card stamped, refilled water, enerzal, 1 banana and turned back at 4:30pm(ride time 9h:30min). 200 done. 200 more to go. Fellow riders stopped at the checkpoint for a short break. But they were experienced in night rides. I just want to crawl into a bed and avoid a night ride at any cost. 2 more hours of sunlight.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/276/1*A79_YS0nbNA4tQfAvFR_GA.jpeg" /></figure><p>I was feeling good till 220km and then the backache was unbearable. There was only one thought going through my mind. Reach 300km CP and then ‘khuda dekhe’!! I was stopping every 20mins. My pace dropped down to 15kmph. I packed a few energy bars for the ride and I was digging through them and cautiously drinking the fluids. Maybe I should’ve kept drinking more. I felt really unease and the traffic was pissing me off on top of everything. I saw a rider on an mtb at his 160km probably. I thought he would barely make it to the 200km CP in time. I have to worry about my own physical state. It was around 7pm and I was at 240km.</p><p>Riders were passing me with much higher energy levels. I debated about stopping this ride and taking a bus back home. I was worried about the traffic striking me down. Some drunk guy or uncontrollable vehicle or some rude bus driver? I just didn’t feel this ride was worth pursuing with fear, pain and uncertainty. I cursed the organisers and Indian format of Brevets where you can’t feel secure. Audax India doesn’t collect more funds or sponsorship to provide safety vehicles to riders. But is it worth offering such an event to the community? Are we the daring kind to ride and finish or the foolish kind to accept this life threatening risk? Personal Safety vehicles are allowed en route if they don’t help you other than at the checkpoints. A few riders had their friends and family tail them from a distance. I’ll consider doing this for my next 600km if I ever do it. But somehow I just wanted to make it to the 300km CP and worry later.</p><h3>The comeback:</h3><p>Heavy traffic near the Daman route and flyovers during peak traffic scared me. What else could I do other than count every km and every 4 minutes? It was getting hopeless. Rests were getting more frequent. I just wanted to give up now. @160km I saw 2 riders ride past me and another rider trying to catch up with them. They were doing a 25–30 pace. I knew I can’t keep up with them but my current strategy was getting me nowhere. So I started pumping a bit.. It was a terrain with minor ups and down. New strategy. Ride hard on the up hills and just stretch downhill by standing on the pedals. More strain on the knee. But I can take it.. For half the distance. This new strategy was working.. I made sure I kept those riders in sight. At least their blinking taillights.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*DwXDHebp03NXPDUnXvo8Cw.jpeg" /></figure><p>I was pedalling hard on the uphills. Suddenly I wasn’t worried about the distance. It was a catching up game with my 3m low light, barely visible front LEDs. I crossed the Gujarat border and suddenly things look achievable. But this is not where I should stop. My strategy was to reach 300km by 10pm and sleep till 2–3am. And have 6 hours for the last 100km. With the current strategy, it looks achievable. At 280km, my back and quads were punishing me. More stretching… Running low on electrolytes and water. Just 60–70mins more. I switched off my watch and just kept pedalling. The only way to end this madness was to keep rolling. I stopped by a dhaba at 290km, 10km from the target and sat down. I didn’t want to go any further. Not even the 10kms. Mentally and physically I was exhausted. Maybe I was just mentally stressed from counting the kms and made the last 20–30kms unachievable. But I got back on the saddle and finally reached the 300km CP, Hotel Athithi, Charoti</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*Ps39EjtQKNO-_-5Zo3B8Wg.jpeg" /></figure><h3>300km CP Charoti:</h3><p>Baby, this is what you came for!! I achieved my target. I just wanted to crash on anything concrete with some warmth. I was informed the organisers booked us a few rooms to rest for a couple of hours. Other riders took a shower and changed into something comfortable. I wasn’t in a state to do anything else other than sleep tight. I set up an alarm for 1am, put the phone on charge, ate a small protein bar and curled myself into a foetus position to compensate for the cold. I was feeling cold as I couldn’t get a blanket but 3 hours of sleep felt amazing. I wanted to sleep for 2 more hours as the thought of going back into the cold and riding sent shivers down my spine. But somehow I lifted my cycle, got some hot water refill and tried sitting on the saddle. I couldn’t. I decided to get a skin replacement on my buttocks if things turned south. So I dared and started riding. My hands were almost freezing.. I was coughing to flush the cold air out of my lungs. Somehow I just pedalled hard and kept going harder.</p><p>My body was quite warm in 5minutes and buttocks were back on the saddle with some resistance but somehow the heat flowing through my body let me sit on the saddle and be there for a while.. After a few uphills, I was riding with joy. I didn’t want to move my ass off the seat-post because I was afraid I can’t sit back on it. Uphills and downhills I just kept pushing myself for about 15mins.. Then I was just enjoying the ride. No more worries about the CP stages.. traffic.. I let myself go and kept pedalling. Because at this stage, I knew I would definitely finish with 7.5 hours in hand and only a 100kms to go. At one point of time.. I felt as if I was flying compared to the nightmare I went through from 230–300kms. But as they say,</p><h3>Good times don’t last so enjoy your time!</h3><p>~325kms done. Nothing would stop me now. Alas! my small front-light died. I didn’t charge it during the rest period and it was powered on for 7 hours now. I’m not a tea coffee kind of person but I stopped by a tea stall and had a glass of tea to keep myself warm while it was charging. I didn’t want to waste much time but at the same time didn’t want to ride without knowing if I’m riding into potholes/snakes. So after a 30min charge, I started riding again. This time knowing well not to look at the distance. This is where I learnt the biggest lesson of my fitness journey.</p><p>It’s our <strong><em>MIND</em></strong> which we need to train more than the <strong><em>BODY</em></strong>. As soon as I stopped counting every km, my mind was stress free. My brain wasn’t going through the suffering mode. I was riding for fun.. Not worried about how much more to go and how much I’ve endured till now. I did some of my fastest paces at 350km and climbed the ghats without rest for 2 hours. I seriously recommend this to any of your future endurance/ultra endurance rides.</p><p>I decided to take a short break every 90minutes or so but never to look at the distance. I started feeling body pains at about 360km mark. I didn’t want to stop for a break this close to the target. I had almost 4 hours for 40km. No brainer. I stopped for a small break when my lights went off again. I used a small emergency tail light for the time being and was charging the head-lights while riding near damn slow. I reached thane toll and then waited till my lights were charged for 20mins.. I rarely used my front-lights from then on as the highway from here was lit with streetlights. I had no excuses so I pushed through Virar and Vasai.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/309/1*tbVi3rHaV22mPemJKEEYnQ.jpeg" /></figure><h3>Just around the corner:</h3><p>After the descent from Vasai ghat, a truck capsized and I was stuck in traffic. I had a lot of time but I was afraid of any unfortunate emergency situations. Took me about 20mins of walking to move through the traffic. 30kms to go and I took some rest. Loaded with protein bars and Enerzal. Stretched a bit and started riding again. But was stuck at traffic near Ghodbunder ghat. Stuck again for 20–30mins. Lifted the cycle on this ghat as no one left any walking space. As a walked down the ghat, at the foothill, another truck was capsized. Shit can go wrong sometimes. Lucky for us, the traffic police shut down the route. We passed the crash and there were no other vehicles en route. Reached Thane. Just 10kms from here.</p><p>I was motivating my fellow rider as he too was suffering from a backache. We kept pushing each other till 5kms to go. I was worried I’ll have a puncture and ruin the ride. Don’t know why I was thinking about it. Maybe it’s because I just wanted to finish at any cost. 1km to go. Now there’s no stopping. I’ll ride a flat from here worst case. Reached Secrete Spice @Mulund. It was an unmanned Checkpoint. So had to get a slip from an ATM as proof of time. After taking a couple of pics, sending them to the organiser, I sat down and started sinking in the achievement. I couldn’t feel most of my body parts. But I survived. A mammoth of a 400 was tamed in 24h 42mins!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MqS2yO7QKIPOHUjWiO9bAw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_g2TFNYUFyNaneGGymlRSA.jpeg" /><figcaption>Time to party or to sleep?!</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/278/1*0DayuIVtw9DY1PfQHVTeIA.jpeg" /></figure><p>Sleep.. just sleep.. and then get even more sleep doing nothing else. Lucky it was a Sunday!!</p><h3>Final Thoughts:</h3><p>I don’t think I would risk my life in India especially for an event unless I have a support vehicle. But Super Randonneur(SR) is now only a 600km away. I can happily suffer through a 300km and 200km for it though :D :P</p><p>Next scheduled ride is a 600km Mumbai-Lonavala-Pune-Mahabaleshwar-Satar-Pune-Lonavala-Mumbai. The crown jewel of the hardest routes Mumbai Brevets can throw at you :|</p><p>PS: Hope I didn’t bore y’all with such a long personal reflection. I’ll come back with more :D</p><p>PPS: I went on to finish my 600km ride a month later for an SR title. 3 months later attempted and finished an <a href="https://medium.com/@adityaprasadn/the-ironman-journey-part-1-training-b257701ff25a">IRONMAN Triathlon</a> in Italy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f3c21bc7137" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Autocomplete and Search for a domain specific E-commerce website]]></title>
            <link>https://medium.com/@adityaprasadn/autocomplete-and-search-for-a-domain-specific-e-commerce-website-24d7fa35f78?source=rss-9ea2d002fec3------2</link>
            <guid isPermaLink="false">https://medium.com/p/24d7fa35f78</guid>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[autocomplete]]></category>
            <category><![CDATA[search]]></category>
            <category><![CDATA[product-design]]></category>
            <dc:creator><![CDATA[Aditya Prasad N]]></dc:creator>
            <pubDate>Thu, 08 Sep 2016 11:55:43 GMT</pubDate>
            <atom:updated>2016-09-11T18:11:13.605Z</atom:updated>
            <content:encoded><![CDATA[<p>Autocompleting user queries in the search bar enhances their browsing experience, converges them faster towards a vertical, shorten their active session-time on the site and you may even apply some business logic to boost GMV. For an e-commerce website selling products with names specific to a region like “polki necklace set”(indian), “pingguo”(chinese), “palissandre”(french), “paella”(spanish), how do you implement autocomplete and a basic domain specific search on your products?</p><p>I’ll give a brief overview of the product and it’s implementation. Following are some of the basic things expected out of your autosuggestion:</p><blockquote>Sub 100ms response for every letter the user types in. Implies query time &lt;10ms on the database.</blockquote><p>I’ve chosen to build it on <a href="https://www.elastic.co/products/elasticsearch">elasticsearch</a>(ES) which has good documentation, faster plain text search and is scalable with the number of products. Preliminary benchmarking shows ES searching on 5million records in under 10ms.</p><blockquote>Query completion not just to the word but to a relevant sentence.</blockquote><p>In order to complete the sentence, we need to either generate those sentences using an NLP library(not efficient for domain specific words) or use users’ search history corpus searched at least twice. Any incoming user search will mostly be in this corpus. Search history of the users might’ve duplicate searches, spelling mistakes, domain irrelevant words, too long a query or such similar issues. **We need to clean up our search history.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*-9GUxjwek2Xf87h_xvzn7g.png" /></figure><blockquote>Spell check user query so it matches against the text you’ve in your database.</blockquote><p>As the problem statement is domain specific, user might not know the product’s english name or spelling. We need to do spell correction in our completion. Why? when user selects a particular autocomplete, it reduces the complexity of text search on products DB wherein you stored the name of product which you/uploading vendor think is the right way to spell the product. Also, you enhance users’ experience and his trust on the website.</p><blockquote>Identify context(product vertical) in which your autocomplete sentence falls in. Food? Clothing? Furniture?</blockquote><p>Identify the context of the text search so you can display the suggestions converging into a vertical. Ex. Paella in <em>Food</em>, Polki in <em>Jewellery</em>, Palissandre in <em>Furnishing</em>, Pingguo in <em>Food. </em>Identifying the product vertical lets you take the user to the corresponding vertical page so user can see that vertical specific filters. We found out users who apply filters have higher conversion compared to those who don’t.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/269/1*1aoaJBKQX6SynI1RNDAIuA.png" /></figure><blockquote>Autocompletion may include products/vertical name/simple sentences based on your domain.</blockquote><p>If you’re running an online grocery firm, your user searches for a particular item/product and it’s essential to show that product with the quantity he would like to order. For an online fashion firm, you would want to suggest a vertical/sub-vertical/trend/brand/regional fashion. It’s unlikely the user searches for a specific product on a fashion website. How you autocomplete depends on your analysis of user search history.</p><blockquote>Search scalable to millions of products in your DB.</blockquote><p>When user clicks on an autocomplete suggestion, you need to do plain text search on your inventory DB. You can identify the adjectives, modifiers and context in the search query and apply filters on your DB to fetch appropriate products. For a market place model, domain specific website, your product names and their properties are at the mercy of vendors’ keyboards. Doing a plain string search with synonyms/spell-corrected-synonyms on products gives more number of products for a given search.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*6Y8UleZYT62_cJ8v6lvywQ.jpeg" /><figcaption>Search starts here</figcaption></figure><h3>Implementation</h3><blockquote>Cleaning up Search History</blockquote><p>If you don’t have any user search history, for a cold start, start with some top selling products/vertical names/crawling competitor websites. If you have an analytics platform like GoogleAnalytics/Mixpanel/Server logs where you captured historic searches of the users, get it in the following format(<a href="https://gist.github.com/adityan619/7909c53281f31dd9d1f6e12a323c2a57#file-top_historic_searches_site-csv">top_historic_searches_site.csv</a>).</p><pre>SearchString           , #times searched<br>Paella                 , 5620<br>Polki necklace set     , 2304<br>Palissandre            , 932<br>Pingguo                , 22</pre><blockquote>Creating an auto_complete index on Elasticsearch</blockquote><p>Once we get the historic searches(searched at least twice?!), we need to cleanup the search data. I’ve written a python script which reads every query, trims,converts to lower case, removes special characters, ignores search strings length&gt;5 words and does spell check using inventory DB. If there’s any spell checks suggested in my model, I take the token and suggested token.</p><p>Every query is split into tokens and spell corrected token is replaced if confidence &gt; .8 and if confidence between .5 and 0.8 it’s eyeballed and tokens are replaced with suggestions. I’ve created a gate_keeper which has all tokens that can be allowed into ES auto_complete corpus. Any query with any of its tokens not present in this gate_keeper doesn’t enter into the final corpus. This data clean up task can be an another post all together. First I’ll create an index with <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping.html">mapping</a> for<a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-suggesters-completion.html"> _suggest</a> API.</p><pre>PUT localhost:9200/auto_complete<br>{&quot;settings&quot;: {<br>    &quot;analysis&quot;: {<br>        &quot;filter&quot;: {<br>            &quot;nGram_filter&quot;: {<br>                &quot;type&quot;: &quot;nGram&quot;,<br>                &quot;min_gram&quot;: 2,<br>                &quot;max_gram&quot;: 20,<br>                &quot;token_chars&quot;: [&quot;letter&quot;, &quot;digit&quot;, &quot;punctuation&quot;, &quot;symbol&quot;]<br>            },<br>            &quot;my_synonyms&quot;: {<br>                &quot;type&quot;: &quot;synonym&quot;,<br>                &quot;synonyms&quot;: []<br>            }<br>        },<br>        &quot;analyzer&quot;: {<br>            &quot;nGram_analyzer&quot;: {<br>                &quot;type&quot;: &quot;custom&quot;,<br>                &quot;tokenizer&quot;: &quot;whitespace&quot;,<br>                &quot;filter&quot;: [&quot;lowercase&quot;, &quot;asciifolding&quot;, &quot;nGram_filter&quot;]<br>            },<br>            &quot;whitespace_analyzer&quot;: {<br>                &quot;type&quot;: &quot;custom&quot;,<br>                &quot;tokenizer&quot;: &quot;whitespace&quot;,<br>                &quot;filter&quot;: [&quot;lowercase&quot;, &quot;asciifolding&quot;]<br>            },<br>            &quot;suggest_synonyms&quot;: {<br>                &quot;type&quot;: &quot;custom&quot;,<br>                &quot;tokenizer&quot;: &quot;whitespace&quot;,<br>                &quot;filter&quot;: [&quot;my_synonyms&quot;]<br>            }<br>        }<br>    }<br>},<br>    &quot;mappings&quot;: {<br>    &quot;searches_type&quot;: {<br>        &quot;_all&quot;: {<br>            &quot;analyzer&quot;: &quot;nGram_analyzer&quot;,<br>            &quot;search_analyzer&quot;: &quot;whitespace_analyzer&quot;<br>        },<br>        &quot;properties&quot;: {<br>            &quot;historic_search_name&quot;: {<br>                &quot;type&quot;: &quot;string&quot;<br>            },<br>            &quot;search_suggest&quot;: {<br>                &quot;type&quot;: &quot;completion&quot;,<br>                &quot;payloads&quot;: true,<br>                &quot;preserve_position_increments&quot;: false,<br>                &quot;preserve_separators&quot;: false<br>            }<br>        }<br>    }<br>}<br>}</pre><p>I’m going to insert historic searches into ES. You can use _bulk api of ES to insert in batches of 10k records. For suggest fields, we have</p><p><em>output</em>: The output to be shown to user if record is a match. <em>input</em>: given search can match any of the these sentences. <em>weight: </em>an optional weight on top of string match _score of the record. <em>payload: </em>optional string which will be returned along with the output where we can include the context of vertical.</p><pre>PUT localhost:9200/auto_complete/searches/<br>{<br>    &quot;historic_search_name&quot;: &quot;polki necklace set&quot;, # the search<br>    &quot;search_suggest&quot;: {<br>        &quot;output&quot;: &quot;polki necklace set&quot;, #what output to show to user<br>        &quot;weight&quot;: 1.5, # weightage(or)score. <br>        &quot;input&quot;: [<br>            &quot;polki set necklace&quot;,<br>            &quot;necklace set polki&quot;,<br>            &quot;necklace polki set&quot;,<br>            &quot;set polki necklace&quot;,<br>            &quot;set necklace polki&quot;,<br>            &quot;polka necklaces&quot;<br>        ], # all the possible combinations of search query<br>        &quot;payload&quot;: &quot;[{\&quot;score\&quot;: 0.6, \&quot;vertical_id\&quot;: 2, \&quot;type\&quot;: \&quot;context_suggest\&quot;, \&quot;vertical_name\&quot;: \&quot;Jewellery\&quot;}]&quot;<br>    }<br>}</pre><blockquote>Querying auto_complete corpus on ES</blockquote><p>Once we put all the historic searches on auto_complete index, we can query using _suggest endpoint. “SearchSuggest” is the name of aggregation to filter in the response. To do a spell correction and search with ngram(2) edit distance, we use <em>fuzzy</em> parameter.</p><pre>GET auto_complete/searches_type/_suggest<br>{<br>    &quot;text&quot;: &quot;p&quot;,<br>    &quot;SearchSuggest&quot;: {<br>        &quot;completion&quot;: {<br>            &quot;field&quot;: &quot;search_suggest&quot;<br>        },<br>        &quot;fuzzy&quot;: {<br>            &quot;fuzziness&quot;: 2<br>        }<br>    }<br>}</pre><p>With a response:</p><pre>{<br>    &quot;_shards&quot;: {<br>        &quot;total&quot;: 5,<br>        &quot;successful&quot;: 5,<br>        &quot;failed&quot;: 0<br>    }<br>    &quot;SearchSuggest&quot;: [{<br>        &quot;text&quot;: &quot;p&quot;,<br>        &quot;offset&quot;: 0,<br>        &quot;length&quot;: 1,<br>        &quot;options&quot;: [{<br>            &quot;text&quot;: &quot;paella&quot;,<br>            &quot;score&quot;: 595.0<br>        }, {<br>            &quot;text&quot;: &quot;polki necklace set&quot;,<br>            &quot;score&quot;: 231.0,<br>            &quot;payload&quot;: &quot;[{\&quot;score\&quot;: 0.6, \&quot;vertical_id\&quot;: 2, \&quot;type\&quot;: \&quot;context_suggest\&quot;, \&quot;vertical_name\&quot;: \&quot;Jewellery\&quot;}]&quot;<br>        }, {<br>            &quot;text&quot;: &quot;palissandre&quot;,<br>            &quot;score&quot;: 132.0,<br>            &quot;payload&quot;: &quot;[{\&quot;score\&quot;: 1.2, \&quot;vertical_id\&quot;: 5, \&quot;type\&quot;: \&quot;context_suggest\&quot;, \&quot;vertical_name\&quot;: \&quot;Furnishing\&quot;},{\&quot;score\&quot;: 0.4, \&quot;vertical_id\&quot;: 19, \&quot;type\&quot;: \&quot;context_suggest\&quot;, \&quot;vertical_name\&quot;: \&quot;Dining Tables\&quot;}]&quot;<br>        }, {<br>            &quot;text&quot;: &quot;pingguo&quot;,<br>            &quot;score&quot;: 104.0<br>        }]<br>    }]<br>}</pre><p>_suggest has given me a response in 6ms over a search corpus of 20k records. We can write a JS parser over this response and show auto_complete suggestions to the user. An interesting thing to note in the payload is a stringified dictionary object where I’ve stored different contexts(verticals/sub-verticals) with an offline script. Every day our analytics scripts can take unique searches on our site, clean the data, and add new/trending searches to our corpus with updated weights.</p><p>In order to implement trending searches, we can give exponentially decaying weights to the timestamp of each query and use this score in <a href="https://gist.github.com/adityan619/7909c53281f31dd9d1f6e12a323c2a57#file-top_historic_searches_site-csv">top_historic_searches_site.csv</a></p><blockquote>Text search on inventory DB</blockquote><p>Once our user selects a particular suggestion, we take the string, and do a plain string search on our inventory database. If you’ve a large number of products, chances are you’re using ES/Solr to power your website for a faster response. If so, do a plain string search on _all fields.</p><p>If you’ve identified any adjectives or properties on the search string, apply those filters in a filter-must query on Elasticsearch.</p><pre>{<br>    &quot;from&quot;: 0,<br>    &quot;size&quot;: 40,<br>    &quot;query&quot;: {<br>        &quot;filtered&quot;: {<br>            &quot;query&quot;: {<br>                &quot;bool&quot;: {<br>                    &quot;must&quot;: [{<br>                        &quot;match&quot;: {<br>                            &quot;_all&quot;: {<br>                                &quot;operator&quot;: &quot;and&quot;,<br>                                &quot;query&quot;: &quot;polki necklace set&quot;,<br>                                &quot;type&quot;: &quot;boolean&quot;<br>                            }<br>                        }<br>                    }, {<br>                        &quot;match&quot;: {<br>                            &quot;_all&quot;: {<br>                                &quot;query&quot;: &quot;polki necklace set&quot;,<br>                                &quot;type&quot;: &quot;phrase&quot;<br>                            }<br>                        }<br>                    }]<br>                }<br>            },<br>            &quot;filter&quot;: {<br>                &quot;bool&quot;: {<br>                    &quot;must&quot;: [{<br>                        &quot;term&quot;: {<br>                            &quot;vertical_id&quot;: 2<br>                        }<br>                    }]<br>                }<br>            }<br>        }<br>    }<br>}</pre><p>As we’re doing a plain string search and we’re not sure about the quality of text in our inventory DB, we can add _score of above query with a product_score field on ES using <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html">FunctionScore</a> or <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-scripting.html">Scripting</a> for better quality run time results.</p><p>Gists: <a href="https://gist.github.com/adityan619/7909c53281f31dd9d1f6e12a323c2a57">https://gist.github.com/adityan619/7909c53281f31dd9d1f6e12a323c2a57</a></p><p>I haven’t covered tweaks for above code, further optimization, benchmarks and why _suggest. That’s for another time. Any suggestions welcome :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24d7fa35f78" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Drama, cinematography and thriller, Game of thrones season 6 finale.]]></title>
            <link>https://medium.com/@adityaprasadn/https-medium-com-adityaprasadn-game-of-thrones-season-6-finale-269c79315fa3?source=rss-9ea2d002fec3------2</link>
            <guid isPermaLink="false">https://medium.com/p/269c79315fa3</guid>
            <category><![CDATA[game-of-thrones]]></category>
            <category><![CDATA[war]]></category>
            <category><![CDATA[television]]></category>
            <dc:creator><![CDATA[Aditya Prasad N]]></dc:creator>
            <pubDate>Wed, 29 Jun 2016 09:38:24 GMT</pubDate>
            <atom:updated>2016-06-30T16:17:46.234Z</atom:updated>
            <content:encoded><![CDATA[<p>Spoiler alert. Don’t read ahead if you didn’t watch the finale. Ya be warned.</p><p>************************************************</p><p>This season has premiered some really good episodes. Most of them adapted from the books. Unfortunately I knew some of the plots from reddit and people talking in a cafe. I was a blank slate just rooting for John Snow in the finale. But boy did that last episode surprise me.</p><p>I liked GOT for its ruthless showcase of politics, reality and murder. But the lack of surprise spoilt it for me all these years. Since season 1, I never had a favorite actor. Slowly the imp grew on me. But deep down I rooted for the Starks. Especially John and Arya. Sansa and Daenerys were two characters I thought would end up marrying some lord, being a pain in the ass. A new plot is developing around them.</p><p>So what was so special about this episode? Cersi took back control of the situation. Expected nothing less from a political mastermind. At a point of zero hope, she turned the tables in her favor. If history serves any better, she’s not gonna sit there for long.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_esuO_Hx38zVSxfb7aHz4Q.jpeg" /></figure><p>Daenerys started her first move to conquer the Iron throne. The moment we’ve all been waiting for, Dragons fully developed, roaring and ready for a war. Till last season I perceived her character as someone who is overly confident and has an unnatural persona. This season, her acts, tactics and policies merit the title of Queen and Ruler. She was willing to give up on her lover to be perceived as a good ruler. Is it her tactic to keep the Imp in her council because he has a big role to play in the battle to come? She ain’t an immature women anymore needing someone’s protection. With the houses dying to make a deal with her, Dothraki and Unsullied army, Dragons, fleet of navy, … Enough said.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*JXeKq3DkL6Tp4o_CxOEAPw.jpeg" /></figure><p>Littlefinger might’ve wanted John dead making Sansa the only Stark left in the north. Is Sansa on board with him? Is Sansa’s endgame the Iron throne? To what extent she’s willing to go? Why didn’t she inform John about the army? Time will tell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*jLvTzGFSJJ0tQM0oIQVvhw.jpeg" /></figure><p>Arya Stark. Oh you little girl. The courage she has, and her perseverance! The directors didn’t reveal her plot to kill Walder Frey so this assassination comes as a surprise with Arya being an unlikely candidate. She would make a perfect assassin under stark banners. She is the most likely candidate to put a knife through Cersi’s throat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*rL9aG1iGMWY_2CZBtwSxyw.jpeg" /></figure><p>Bran Stark is finally the three eyed raven. A huge speculation of R+L=J has come true. Bran can show us the past and can be an instrumental character in fitting mythology in the future episodes. We saw that he can communicate into the past and alter the current timeline. Will he screw up the entire plot of the north by making another wargy mistake? His time to show-off must wait till the end of the show itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*GfHDx2SDDsBo4tH9twg1XA.jpeg" /></figure><p>And finally, Our new King in the North! Is it just me or does everyone thinks he’s just lucky? There’re some people in the real world, who with an inherent talent and a bit of luck emerge victorious. Even though Snow makes lots of blunders, he wades through worse probabilities with his sword skills. What is his next plot? Pledge allegiance to the Dragon queen and use her dragons to fight off the White Walkers? Or will the Dragons abandon their mother and attend the call of the Alpha, Joh Snow, the true Azorahai? Does John have a twin? Lyanna stark was shown bleeding to death from from delivery. Did she give birth to another kid? Lots to look forward to in the next Season, As the directors want to end this show, the next season is gonna be packed with action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*tWmppBw3W-R3CySdh1prFg.png" /></figure><p>Untill next Season….</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=269c79315fa3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>