Elastic Cloud: exceeds the automatic field expansion limit of [1024]

Is there a new limitation in Elastic Cloud 8.x instances that prevents the use of index.mapping.total_fields.limit greater than 1024 in an index template? Seeing a deprecation issue “exceeds the automatic field expansion limit of [1024]“.

Is there a way to raise this limit?

Is this what you are looking for?

E.g.

PUT /<index>/_settings
{
  "index.mapping.total_fields.limit" : 2048
}

While you can increase the limit, the suggestion is it's usually not advisable on performance grounds. Too many fields suggest there would be a benefit in adjusting mapping and/or indexing to reduce this.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.