ElasticSearch {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported

es查询报错

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

解决

curl -H “Content-Type: application/json” ‘localhost:9200/accounts/person/_search’
加上 -H “Content-Type: application/json”

展开阅读全文

没有更多推荐了,返回首页