我以前有ElasticSearch 5.2,刚刚升级到6.0.
我试图在这里按照指南创建一个索引模板,但是得到了错误
Content-Type header [application/x-www-form-urlencoded] is not supported
Run Code Online (Sandbox Code Playgroud)
我的疑问是
curl -X PUT localhost:9200/_template/template_1 -d '
{
"index_patterns": ["te*", "bar*"],
"mappings": {
"type1": {
"properties": {
"host_name": {
"type": "keyword"
}
}
}
}
}'
Run Code Online (Sandbox Code Playgroud)