Elasticsearch version 7.17 - reindex with important nested documents

The aim is to reindex an index (from a backup of an ES6.8 version) with important nested documents.

The max_result_window parameter was increased, but without success.
I still get the error:
The number of nested documents has exceeded the allowed limit [10000].
Question:

  • Is there a limit to the max_result_window parameter?
  • What other solutions are there (bearing in mind that my other indexes in the same cluster reindex correctly)?

I thinch I find the solution : the parameter index.mapping.nested_fields.limit.

PUT my_index\_settings
{
 "index.mapping.nested_fields.limit": my_max_value
}