def collect_info(self):
try:<EOL><INDENT>info = {}<EOL>res = self._send_request('<STR_LIT:GET>', "<STR_LIT:/>")<EOL>info['<STR_LIT>'] = {}<EOL>info['<STR_LIT>']['<STR_LIT:name>'] = res['<STR_LIT:name>']<EOL>info['<STR_LIT>']['<STR_LIT:version>'] = res['<STR_LIT:version>']<EOL>info['<STR_LIT>'] = res<EOL>info['<STR_LIT:status>'] = self.cluster.status()<EOL>info['<STR_LIT>'] = self.indices.aliases()<EOL>self.info = info<EOL>return True<EOL><DEDENT>except:<EOL><INDENT>self.info = {}<EOL>return False<EOL><DEDENT>
Collect info about the connection and fill the info dictionary.