{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported
curl -XPUT ‘http://192.168.150.101:9200/store/books/2’ -d ‘{
“title”: “",
“name” : {
“first” : "",
“last” : ""
},
“publish_date”:"”,
“price”:“35222.99”
}’
在curl后面加上-H "Content-Type: application/json"
就可以了
ES添加数据失败
最新推荐文章于 2023-06-25 20:05:35 发布