def _get_host_string(config):
    """
    Take appropriate elements from a config dictionary and convert them into
    a string of format 'host:port'.
    :param dict config: Application configuration dictionary, including ES config.
    """
    host = config["es-configuration"]["es-host"]
    port = config["es-configuration"]["es-port"]
    return "%s:%d" % (host, port)