reads all the elasticssearch ids for an index

def get_es_ids(self):
        """
        reads all the elasticssearch ids for an index
        """
        search = self.search.source(['uri']).sort(['uri'])
        es_ids = [item.meta.id for item in search.scan()]
        return es_ids