I used to have ElasticSearch 5.2, and just upgraded to 6.0.
I am trying to create an index template following guide here, but got error
Content-Type header [application/x-www-form-urlencoded] is not supported
My query is
curl -X PUT localhost:9200/_template/template_1 -d '
{
"index_patterns": ["te*", "bar*"],
"mappings": {
"type1": {
"properties": {
"host_name": {
"type": "keyword"
}
}
}
}
}'
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…