When I run:
curl -XPUT 'localhost:9200/applicants?pretty' -H 'Content-Type: application/json' -d'
{
"settings":
{
"index.mapping.total_fields.limit": 2000,
}
}
'
I get:
{
"error" : {
"root_cause" : [
{
"type" : "parse_exception",
"reason" : "Failed to parse content to map"
}
],
"type" : "parse_exception",
"reason" : "Failed to parse content to map",
"caused_by" : {
"type" : "json_parse_exception",
"reason" : "Unexpected character ('}' (code 125)): was expecting double-quote to start field name\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@49f040ad; line: 6, column: 6]"
}
},
"status" : 400
}
What am I doing wrong?