From a0ed87437520f6ab9203b1507a0cc23b76935427 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 09:57:39 +0400 Subject: [PATCH] [Backport 8.17] Allow string for total_fields index settings (#3225) (cherry picked from commit cec582a2670b16c64fb30165065bcedb3eac3b25) Co-authored-by: Quentin Pradet --- specification/indices/_types/IndexSettings.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/indices/_types/IndexSettings.ts b/specification/indices/_types/IndexSettings.ts index 136cf5a4f1..70b79d6af8 100644 --- a/specification/indices/_types/IndexSettings.ts +++ b/specification/indices/_types/IndexSettings.ts @@ -430,7 +430,7 @@ export class MappingLimitSettingsTotalFields { * degradations and memory issues, especially in clusters with a high load or few resources. * @server_default 1000 */ - limit?: long + limit?: long | string /** * This setting determines what happens when a dynamically mapped field would exceed the total fields limit. When set * to false (the default), the index request of the document that tries to add a dynamic field to the mapping will fail @@ -439,7 +439,7 @@ export class MappingLimitSettingsTotalFields { * The fields that were not added to the mapping will be added to the _ignored field. * @server_default false */ - ignore_dynamic_beyond_limit?: boolean + ignore_dynamic_beyond_limit?: boolean | string } export class MappingLimitSettingsDepth {