Get the existing analysis for the `using` Elasticsearch connection

def existing_analysis(using):
    """
    Get the existing analysis for the `using` Elasticsearch connection
    """
    es = connections.get_connection(using)
    index_name = settings.ELASTICSEARCH_CONNECTIONS[using]['index_name']
    if es.indices.exists(index=index_name):
        return stringer(es.indices.get_settings(index=index_name)[index_name]['settings']['index'].get('analysis', {}))
    return DOES_NOT_EXIST