(index_info, doc_id)
return ElasticsearchInterface(get_es_new()).doc_exists(index_info.alias, doc_id, index_info.type)
Check if a document exists
Check if a document exists
Check if a document exists
def doc_exists_in_es(index_info, doc_id):
    """
    Check if a document exists
    """
    return ElasticsearchInterface(get_es_new()).doc_exists(index_info.alias, doc_id, index_info.type)
def doc_exists_in_es ( index_info , doc_id ) : return ElasticsearchInterface ( get_es_new ( ) ) . doc_exists ( index_info . alias , doc_id , index_info . type )