'Collect info about the connection and fill the info dictionary.'

def collect_info(self):

    try:
        info = {}
        res = self._send_request('GET', '/')
        info['server'] = {}
        info['server']['name'] = res['name']
        info['server']['version'] = res['version']
        info['allinfo'] = res
        info['status'] = self.cluster.status()
        info['aliases'] = self.indices.aliases()
        self.info = info
        return True
    except:
        self.info = {}
        return False
