def update(self, obj, resource_id):
self.logger.debug('<STR_LIT>'.format(resource_id))<EOL>return self.driver._es.index(<EOL>index=self.driver._index,<EOL>id=resource_id,<EOL>body=obj,<EOL>doc_type='<STR_LIT>',<EOL>refresh='<STR_LIT>'<EOL>)['<STR_LIT>']<EOL>
Update object in elasticsearch using the resource_id.
        :param metadata: new metadata for the transaction.
        :param resource_id: id of the object to be updated.
        :return: id of the object.