NEST, can't disable indenting

This is my code:

var connectionSettings = new ConnectionSettings(new
SniffingConnectionPool(nodes));
connectionSettings.SetJsonSerializerSettingsModifier(settings =>
{
settings.Formatting = Formatting.None;
});
var nestClient = new ElasticClient(connectionSettings);

I previously used ElasticSearch.NET directly, and I had no problem setting
formatting to "Formatting.None", but when using NEST, whenever I index a
document, it's indented. This is an example of an Index call:

nestClient.Index(obj, i => i.Index(index).Type("user").Id(key));

Thanks for helping me out here!

Lasse

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/94096399-d47b-4f64-adf7-ca3d049d70c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.