Yes, I PUT it to http://localhost:9200/_template/template_1.
When I GET the above address, I see:
{
"template_1" : {
"template" : "",
"order" : 0,
"settings" : {
},
"mappings" : {
"" : {
"_source" : {
"enabled" : false
},
"dynamic_templates" : [ {
"disable_string_analyzing" : {
"mapping" : {
"index" : "not_analyzed",
"type" : "string"
},
"match" : "*",
"match_mapping_type" : "string"
}
} ]
}
}
}
}
However, when I create a new index, it still has the _source field and
the string fields are being tokenized, so the template doesn't appear
to be getting applied.
If it is perfectly fine to use config/default-mapping.json, I may as
well continue using this. I was just concerned because you said there
was a newer method that the old method might become deprecated.