def get_text(index_name, es, text_id):
    """ Return a text in ElasticSearch with the param id

    :param index_name: ElasticSearch index file
    :param es: ElasticSearch object
    :param text_id: Text id
    :return: str
    """
    res = es.get(index=index_name, id=text_id)
    return res['_source']['text']