I am trying to use the .Net client Nest 6.2 for ES. I am trying to configure the default settings for number of shards and replicas. this is the code I found online: using index settings
var indexName= "indexName";
var client = this.ConnectedClient;
var settings = new IndexSettings();
settings.NumberOfReplicas = 1;
settings.NumberOfShards = 5;
client.CreateIndex(indexName, settings);
but the last line is raising a compilation error:
cannot convert from Nest.INdexSettings to System.Func