oceandb_elasticsearch_driver/plugin.py
def update(self, obj, resource_id):
        """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.
        """
        self.logger.debug('elasticsearch::update::{}'.format(resource_id))
        return self.driver._es.index(
            index=self.driver._index,
            id=resource_id,
            body=obj,
            doc_type='_doc',
            refresh='wait_for'
        )['_id']
def update(self, obj, resource_id):
        """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.
        """
        self.logger.debug('elasticsearch::update::{}'.format(resource_id))
        return self.driver._es.index(
            index=self.driver._index,
            id=resource_id,
            body=obj,
            doc_type='_doc',
            refresh='wait_for'
        )['_id']
def update ( self , obj , resource_id ) : self . logger . debug ( 'elasticsearch::update::{}' . format ( resource_id ) ) return self . driver . _es . index ( index = self . driver . _index , id = resource_id , body = obj , doc_type = '_doc' , refresh = 'wait_for' ) [ '_id' ]
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.
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 .