Indian markets closed slightly higher on Thursday after consolidating in the previous two sessions. The BSE Sensex ended at 51,531.52, up 222.13 points or 0.43%. The 50-share index Nifty closed at 15,173.30, up 66.80 points or 0.44%.