Skip to content

PutTemplate does not set the mappings #675

Closed
@adamporat

Description

@adamporat

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
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions