WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Index Templatesedit
Allows you to define templates on the cluster that are applied everytime an index is created.
var putResponse = this._client.PutTemplate(t=>t .Name("put-template-with-settings") .Template("donotinfluencothertests-*") .Settings(s=>s .Add("index.number_of_shards", 3) .Add("index.number_of_replicas", 2) ) .AddMapping<dynamic>(s=>s .TypeName("mytype") .DisableAllField() ) );