The Indian market ended weaker on Wednesday, with the Sensex and Nifty edging lower and extending their slide to a fourth session as investors stayed cautious near record levels.