相关疑难解决方法(0)

不支持ElasticSearch - Content-Type标头[application/x-www-form-urlencoded]

我以前有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)

curl content-type http-put mime-types elasticsearch

107
推荐指数
3
解决办法
6万
查看次数

标签 统计

content-type ×1

curl ×1

elasticsearch ×1

http-put ×1

mime-types ×1