Migrating from Nest to Elasticsearch V8
Before (using Nest) I had
var settings = new ConnectionSettings(new Uri(elasticSettings.Uri));
settings
.ThrowExceptions(elasticSettings.ThrowExceptions)
.PrettyJson(elasticSettings.PrettyJson)
.DefaultMappingFor<CorrelationContext>(ms => ms.Ignore(p => p.DgpHeader));
Changed ConnectionSettings
to ElasticsearchClientSettings
but the Ignore-option on DefaultMappingFor
isn’t available anymore.
I only find documentation regarding this for v7 but not for v8
Is it moved to somewhere else?
And if not, how can we achieve the same result?