I'd recommend also
-
checking to see if the index already exists before trying to create it
if (!client.Indices.Exists("honadonz12").Exists) { // create the index }
-
checking that the index was successfully created, by looking at the
createIndexResponse
var createIndexResponse = client.Indices.Create("honadonz12", c => c .Map<ElasticSearchModel>(mm => mm .AutoMap() ) .RequestConfiguration(r => r .DisableDirectStreaming() ) ); if (!createIndexResponse.IsValid) { // do something }