Had a hernia op about 8 years back. You will get toldto take off 6 weeks, 8 weeks, 6 months etc, but to be honest you could return to light work after a couple of weeks, NOT carpet cleaning, if you had a desk job for example. I was out quoting but never did any work for 6 weeks, its not worth the risk, and you will know when you feel safe to return. I started doing one job a day just to be on the safe side. Never had any further problem since, but avoid lifting heavy loads, or straining for 6 months.
Its not the end of your working life, just feels like it, at the moment. The 6 week boredom will kill you though.