I’m running this elastic command:
curl -X PUT “http://localhost:9200/user_data?pretty” -H “Content-Type: application/json” -d ‘{“settings”:{“number_of_shards”:1,”number_of_replicas”:0},”mappings”:{“properties”:{“name”:{“type”:”text”},”age”:{“type”:”integer”},”timestamp”:{“type”:”date”}}}}’
(I left it 1 line for easy copy and paste)
I get this error:
{
"error" : {
"root_cause" : [
{
"type" : "not_x_content_exception",
"reason" : "Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"
}
],
"type" : "not_x_content_exception",
"reason" : "Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes"
},
"status" : 500
}
Can you please help resolve.