def available_indices(cluster):
    """Returns the set of addressable indices and aliases."""
    indices = set()
    for index_name, data in cluster.indices.get_alias().items():
        indices.add(index_name)
        indices.update(data['aliases'].keys())
    return indices