【发布时间】:2018-05-12 16:48:54
【问题描述】:
我以前有 ElasticSearch 5.2,刚刚升级到 6.0。
我正在尝试按照指南 here 创建索引模板,但出现错误
Content-Type header [application/x-www-form-urlencoded] is not supported
我的查询是
curl -X PUT localhost:9200/_template/template_1 -d '
{
"index_patterns": ["te*", "bar*"],
"mappings": {
"type1": {
"properties": {
"host_name": {
"type": "keyword"
}
}
}
}
}'
【问题讨论】:
标签: elasticsearch curl mime-types content-type http-put