Skip to content

Commit 084db75

Browse files
Add missing index setting ignore_dynamic_beyond_limit (#2653)
1 parent d15b4fd commit 084db75

File tree

5 files changed

+46
-15
lines changed

5 files changed

+46
-15
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72601,6 +72601,10 @@
7260172601
"limit": {
7260272602
"description": "The maximum number of fields in an index. Field and object mappings, as well as field aliases count towards this limit.\nThe limit is in place to prevent mappings and searches from becoming too large. Higher values can lead to performance\ndegradations and memory issues, especially in clusters with a high load or few resources.",
7260372603
"type": "number"
72604+
},
72605+
"ignore_dynamic_beyond_limit": {
72606+
"description": "This setting determines what happens when a dynamically mapped field would exceed the total fields limit. When set\nto false (the default), the index request of the document that tries to add a dynamic field to the mapping will fail\nwith the message Limit of total fields [X] has been exceeded. When set to true, the index request will not fail.\nInstead, fields that would exceed the limit are not added to the mapping, similar to dynamic: false.\nThe fields that were not added to the mapping will be added to the _ignored field.",
72607+
"type": "boolean"
7260472608
}
7260572609
}
7260672610
},

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 28 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/indices/_types/IndexSettings.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,15 @@ export class MappingLimitSettingsTotalFields {
429429
* @server_default 1000
430430
*/
431431
limit?: long
432+
/**
433+
* This setting determines what happens when a dynamically mapped field would exceed the total fields limit. When set
434+
* to false (the default), the index request of the document that tries to add a dynamic field to the mapping will fail
435+
* with the message Limit of total fields [X] has been exceeded. When set to true, the index request will not fail.
436+
* Instead, fields that would exceed the limit are not added to the mapping, similar to dynamic: false.
437+
* The fields that were not added to the mapping will be added to the _ignored field.
438+
* @server_default false
439+
*/
440+
ignore_dynamic_beyond_limit?: boolean
432441
}
433442

434443
export class MappingLimitSettingsDepth {

0 commit comments

Comments
 (0)