Sensex surges 247 points; metal, realty stocks shine