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”
{“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”