Nest Client Raw String

While upgrading to elastic 2.0 I am running into a snag.

In Nest 1.0, I could read an index's settings from a file and configure the index on creation using the raw string. Is there a way to the something similar in Nest 2.0 or do I have to use the fluent API for each setting including the analysis portion? The same question for mappings.

Nest 1.0

private bool CreateIndex(string index, FileInfo settingsFile)
{
    var settings = File.ReadAllText(settingsFile.FullName);

    IElasticsearchConnector _elastic
    var response = _elastic.Client.Raw.IndicesCreate(index, settings);

    if (!response.IsValid)
    {
        //Logging error
        return false
    
    }
    return true;
}

IElasticClient.Raw, the low level client available on the high level client, has been renamed to IElastiClient.LowLevel to better reflect what it is.

The similar call in NEST 2.x to what you want to do is

private bool CreateIndex(string index, FileInfo settingsFile)
{
    var settings = File.ReadAllText(settingsFile.FullName);

    var response = 
        _elastic.Client.LowLevel.IndicesCreate(index, settings);

    if (!response.Success)
    {
        //Log error
    }

    return response.Success;
}

Thank you for the help, that worked!