def create_alias(self, alias, indexes):
        query = {}
        query['actions'] = []
        for index in indexes:
            query['actions'].append({"add": {"index": index, "alias": alias}})

        path = self._make_path(['_aliases'])
        self.send_request('POST', path, body=query)
        resp = json.loads(self.last_response.text)
        return self.check_result(resp, 'ok', True)
Reimplemented to provide size hint based on a checkbox
dataset/ETHPy150Open eriky/ESClient/esclient.py/ESClient.create_alias--crossover with--dataset/ETHPy150Open enthought/traitsui/traitsui/qt4/extra/checkbox_renderer.py/CheckboxRenderer.sizeHint