I would like to set the 'index.mapping.total_fields.limit' index setting for an index template, but it does not seem to work. My template looks like:
{
template: 'alerts*',
settings: {
'index.mapping.total_fields.limit': 2000,
number_of_shards: 10
},
mappings: {
alert: { // > 1000 fields defined }
}
},
When adding my template I get an error indicating the default limit:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Limit of total fields [1000] in index [m9CIuWEdQvOmFmjGFReIUg] has been exceeded"
}
],
"type": "illegal_argument_exception",
"reason": "Limit of total fields [1000] in index [m9CIuWEdQvOmFmjGFReIUg] has been exceeded"
},
"status": 400
}