Closed
Description
In 1.0.0 beta - PutTemplate creates an empty template - without the specified mappings specified in AddMapping.
Specifically, the command:
var result =
_EC.PutTemplate("template1",
t => t.Template("indexName*")
.AddMapping(i => i.MapFromAttributes().AllField(j => j.Enabled(false)).DateDetection(false)));
creates a template such as:
"template1": {
"order": 0,
"template": "indexName*",
"settings": {},
"mappings": {},
"warmers": {},
"aliases": {}
}
Metadata
Metadata
Assignees
Labels
No labels