Large companies like Reliance Industries helped push the market upward. Metal and energy stocks also gained