Skip to content

Add missing type for ignore_dynamic_beyond_limit for the Indices Settings API #2653

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions output/openapi/elasticsearch-openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -72601,6 +72601,10 @@
"limit": {
"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.",
"type": "number"
},
"ignore_dynamic_beyond_limit": {
"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.",
"type": "boolean"
}
}
},
Expand Down
4 changes: 4 additions & 0 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 28 additions & 15 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions specification/indices/_types/IndexSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,15 @@ export class MappingLimitSettingsTotalFields {
* @server_default 1000
*/
limit?: long
/**
* 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
* with the message Limit of total fields [X] has been exceeded. When set to true, the index request will not fail.
* Instead, fields that would exceed the limit are not added to the mapping, similar to dynamic: false.
* The fields that were not added to the mapping will be added to the _ignored field.
* @server_default false
*/
ignore_dynamic_beyond_limit?: boolean
}

export class MappingLimitSettingsDepth {
Expand Down
Loading