oceandb_elasticsearch_driver/plugin.py
def read(self, resource_id):
        """Read object in elasticsearch using the resource_id.
        :param resource_id: id of the object to be read.
        :return: object value from elasticsearch.
        """
        self.logger.debug('elasticsearch::read::{}'.format(resource_id))
        return self.driver._es.get(
            index=self.driver._index,
            id=resource_id,
            doc_type='_doc'
        )['_source']
def read(self, resource_id):
        """Read object in elasticsearch using the resource_id.
        :param resource_id: id of the object to be read.
        :return: object value from elasticsearch.
        """
        self.logger.debug('elasticsearch::read::{}'.format(resource_id))
        return self.driver._es.get(
            index=self.driver._index,
            id=resource_id,
            doc_type='_doc'
        )['_source']
def read ( self , resource_id ) : self . logger . debug ( 'elasticsearch::read::{}' . format ( resource_id ) ) return self . driver . _es . get ( index = self . driver . _index , id = resource_id , doc_type = '_doc' ) [ '_source' ]
Read object in elasticsearch using the resource_id.
        :param resource_id: id of the object to be read.
        :return: object value from elasticsearch.
Read object in elasticsearch using the resource_id . : param resource_id : id of the object to be read . : return : object value from elasticsearch .