The Indian stock market ended on a high note on Thursday, with both benchmark indices registering significant gains.