HI,
I'm trying to create own template to set shard value for my index, when i run shell script which contain template creation command i'm getting below error any one could help me on this,
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}
template.sh
curl -XPUT localhost:9200/_template/template_flyingarrow -d "
{
"template": "*",
"settings": {
"number_of_shards": 2
},
"mappings": {
"_doc": {
"_source": {
"enabled": false
},
}
}
}"