Added index() and update() method binded with the ES API