我在elasticsearch中遇到此错误

时间:2018-02-06 11:10:30

标签: elasticsearch

{  
   "error":"Content-Type header [application/x-www-form-urlencoded] is not supported",
   "status":406
}

虽然我使用了标题Content-Type

以下是我用于索引客户索引的客户文档的命令:

curl -XPUT localhost:9200/customer/doc/1 -H 'Content-Type:application/json' -d '{"name":"abcd"}'

0 个答案:

没有答案