I am learning elasticsearch. I have specified the mapping in \'mapping.json\'. Its contents are
{ \"book\" : { \"_index\" : { \"enabled
On AWS I got an error like
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}
To fix it I added
-H 'Content-Type: application/json'