Index template:
Dynamic Template
example:
PUT ttemplate/_doc/1
{
"someNumber":"1",
"someDate":"2019/01/01"
}
GET ttemplate/_mapping
PUT /_template/template_test
{
"index_patterns":["test*"],
"order":1,
"settings":{
"number_of_shards":1,
"number_of_replicas":2
},
"mappings":{
"date_detection":false,
"numeric_detection":true
}
}
GET /_template/template_default
GET /_template/temp*
PUT my_dynamic_index
{
"mappings": {
"dynamic_templates":[
{
"string_as_boolean":{
"match_mapping_type":"string",
"match":"is*",
"mapping":{
"type":"boolean"
}
}
}
]
}
}