Skip to content

Commit e5ed2f0

Browse files
Auto-generated API code
1 parent a1b3412 commit e5ed2f0

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

docs/reference.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,7 +1952,7 @@ client.indices.create({ index })
19521952
* *Request (object):*
19531953
** *`index` (string)*: Name of the index you wish to create.
19541954
** *`aliases` (Optional, Record<string, { filter, index_routing, is_hidden, is_write_index, routing, search_routing }>)*: Aliases for the index.
1955-
** *`mappings` (Optional, { all_field, date_detection, dynamic, dynamic_date_formats, dynamic_templates, _field_names, index_field, _meta, numeric_detection, properties, _routing, _size, _source, runtime, enabled })*: Mapping for fields in the index. If specified, this mapping can include:
1955+
** *`mappings` (Optional, { all_field, date_detection, dynamic, dynamic_date_formats, dynamic_templates, _field_names, index_field, _meta, numeric_detection, properties, _routing, _size, _source, runtime, enabled, subobjects })*: Mapping for fields in the index. If specified, this mapping can include:
19561956
- Field names
19571957
- Field data types
19581958
- Mapping parameters
@@ -2540,7 +2540,7 @@ a new date field is added instead of string.
25402540
not used at all by Elasticsearch, but can be used to store
25412541
application-specific metadata.
25422542
** *`numeric_detection` (Optional, boolean)*: Automatically map strings into numeric data types for all fields.
2543-
** *`properties` (Optional, Record<string, { type } | { boost, fielddata, index, null_value, type } | { type, enabled, null_value, boost, coerce, script, on_script_error, ignore_malformed, time_series_metric, analyzer, eager_global_ordinals, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, format, precision_step, locale } | { relations, eager_global_ordinals, type } | { boost, eager_global_ordinals, index, index_options, normalizer, norms, null_value, split_queries_on_whitespace, type } | { type, fields, meta, copy_to } | { type } | { positive_score_impact, type } | { positive_score_impact, type } | { analyzer, index, index_options, max_shingle_size, norms, search_analyzer, search_quote_analyzer, term_vector, type } | { analyzer, boost, eager_global_ordinals, fielddata, fielddata_frequency_filter, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, type } | { type } | { type } | { boost, format, ignore_malformed, index, null_value, precision_step, type } | { boost, fielddata, format, ignore_malformed, index, null_value, precision_step, locale, type } | { type, default_metric, metrics, time_series_metric } | { type, dims, similarity, index, index_options } | { type } | { boost, depth_limit, doc_values, eager_global_ordinals, index, index_options, null_value, similarity, split_queries_on_whitespace, type } | { enabled, include_in_parent, include_in_root, type } | { enabled, type } | { analyzer, contexts, max_input_length, preserve_position_increments, preserve_separators, search_analyzer, type } | { value, type } | { path, type } | { ignore_malformed, type } | { boost, index, ignore_malformed, null_value, on_script_error, script, type } | { type } | { analyzer, boost, index, null_value, enable_position_increments, type } | { ignore_malformed, ignore_z_value, null_value, index, on_script_error, script, type } | { coerce, ignore_malformed, ignore_z_value, orientation, strategy, type } | { ignore_malformed, ignore_z_value, null_value, type } | { coerce, ignore_malformed, ignore_z_value, orientation, type } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value, scaling_factor } | { type, null_value } | { type, null_value } | { format, type } | { type } | { type } | { type } | { type } | { type }>)*: Mapping for a field. For new fields, this mapping can include:
2543+
** *`properties` (Optional, Record<string, { type } | { boost, fielddata, index, null_value, type } | { type, enabled, null_value, boost, coerce, script, on_script_error, ignore_malformed, time_series_metric, analyzer, eager_global_ordinals, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, format, precision_step, locale } | { relations, eager_global_ordinals, type } | { boost, eager_global_ordinals, index, index_options, normalizer, norms, null_value, split_queries_on_whitespace, type } | { type, fields, meta, copy_to } | { type } | { positive_score_impact, type } | { positive_score_impact, type } | { analyzer, index, index_options, max_shingle_size, norms, search_analyzer, search_quote_analyzer, term_vector, type } | { analyzer, boost, eager_global_ordinals, fielddata, fielddata_frequency_filter, index, index_options, index_phrases, index_prefixes, norms, position_increment_gap, search_analyzer, search_quote_analyzer, term_vector, type } | { type } | { type } | { boost, format, ignore_malformed, index, null_value, precision_step, type } | { boost, fielddata, format, ignore_malformed, index, null_value, precision_step, locale, type } | { type, default_metric, metrics, time_series_metric } | { type, dims, similarity, index, index_options } | { type } | { boost, depth_limit, doc_values, eager_global_ordinals, index, index_options, null_value, similarity, split_queries_on_whitespace, type } | { enabled, include_in_parent, include_in_root, type } | { enabled, subobjects, type } | { analyzer, contexts, max_input_length, preserve_position_increments, preserve_separators, search_analyzer, type } | { value, type } | { path, type } | { ignore_malformed, type } | { boost, index, ignore_malformed, null_value, on_script_error, script, type } | { type } | { analyzer, boost, index, null_value, enable_position_increments, type } | { ignore_malformed, ignore_z_value, null_value, index, on_script_error, script, type } | { coerce, ignore_malformed, ignore_z_value, orientation, strategy, type } | { ignore_malformed, ignore_z_value, null_value, type } | { coerce, ignore_malformed, ignore_z_value, orientation, type } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value } | { type, null_value, scaling_factor } | { type, null_value } | { type, null_value } | { format, type } | { type } | { type } | { type } | { type } | { type }>)*: Mapping for a field. For new fields, this mapping can include:
25442544

25452545
- Field name
25462546
- Field data type
@@ -2615,7 +2615,7 @@ client.indices.putTemplate({ name })
26152615
** *`aliases` (Optional, Record<string, { filter, index_routing, is_hidden, is_write_index, routing, search_routing }>)*: Aliases for the index.
26162616
** *`index_patterns` (Optional, string | string[])*: Array of wildcard expressions used to match the names
26172617
of indices during creation.
2618-
** *`mappings` (Optional, { all_field, date_detection, dynamic, dynamic_date_formats, dynamic_templates, _field_names, index_field, _meta, numeric_detection, properties, _routing, _size, _source, runtime, enabled })*: Mapping for fields in the index.
2618+
** *`mappings` (Optional, { all_field, date_detection, dynamic, dynamic_date_formats, dynamic_templates, _field_names, index_field, _meta, numeric_detection, properties, _routing, _size, _source, runtime, enabled, subobjects })*: Mapping for fields in the index.
26192619
** *`order` (Optional, number)*: Order in which Elasticsearch applies this template if index
26202620
matches multiple templates.
26212621

@@ -2703,7 +2703,7 @@ If specified, Elasticsearch only performs the rollover if the current index sati
27032703
If this parameter is not specified, Elasticsearch performs the rollover unconditionally.
27042704
If conditions are specified, at least one of them must be a `max_*` condition.
27052705
The index will rollover if any `max_*` condition is satisfied and all `min_*` conditions are satisfied.
2706-
** *`mappings` (Optional, { all_field, date_detection, dynamic, dynamic_date_formats, dynamic_templates, _field_names, index_field, _meta, numeric_detection, properties, _routing, _size, _source, runtime, enabled })*: Mapping for fields in the index.
2706+
** *`mappings` (Optional, { all_field, date_detection, dynamic, dynamic_date_formats, dynamic_templates, _field_names, index_field, _meta, numeric_detection, properties, _routing, _size, _source, runtime, enabled, subobjects })*: Mapping for fields in the index.
27072707
If specified, this mapping can include field names, field data types, and mapping paramaters.
27082708
** *`settings` (Optional, Record<string, User-defined value>)*: Configuration options for the index.
27092709
Data streams do not support this parameter.

src/api/types.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5074,6 +5074,7 @@ export interface MappingNumberPropertyBase extends MappingDocValuesPropertyBase
50745074

50755075
export interface MappingObjectProperty extends MappingCorePropertyBase {
50765076
enabled?: boolean
5077+
subobjects?: boolean
50775078
type?: 'object'
50785079
}
50795080

@@ -5248,6 +5249,7 @@ export interface MappingTypeMapping {
52485249
_source?: MappingSourceField
52495250
runtime?: Record<string, MappingRuntimeField>
52505251
enabled?: boolean
5252+
subobjects?: boolean
52515253
}
52525254

52535255
export interface MappingUnsignedLongNumberProperty extends MappingNumberPropertyBase {
@@ -13139,8 +13141,8 @@ export interface MlTrainedModelLocationIndex {
1313913141
}
1314013142

1314113143
export interface MlTrainedModelPrefixStrings {
13142-
ingest: string
13143-
search: string
13144+
ingest?: string
13145+
search?: string
1314413146
}
1314513147

1314613148
export interface MlTrainedModelSizeStats {

src/api/typesWithBodyKey.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5147,6 +5147,7 @@ export interface MappingNumberPropertyBase extends MappingDocValuesPropertyBase
51475147

51485148
export interface MappingObjectProperty extends MappingCorePropertyBase {
51495149
enabled?: boolean
5150+
subobjects?: boolean
51505151
type?: 'object'
51515152
}
51525153

@@ -5321,6 +5322,7 @@ export interface MappingTypeMapping {
53215322
_source?: MappingSourceField
53225323
runtime?: Record<string, MappingRuntimeField>
53235324
enabled?: boolean
5325+
subobjects?: boolean
53245326
}
53255327

53265328
export interface MappingUnsignedLongNumberProperty extends MappingNumberPropertyBase {
@@ -13327,8 +13329,8 @@ export interface MlTrainedModelLocationIndex {
1332713329
}
1332813330

1332913331
export interface MlTrainedModelPrefixStrings {
13330-
ingest: string
13331-
search: string
13332+
ingest?: string
13333+
search?: string
1333213334
}
1333313335

1333413336
export interface MlTrainedModelSizeStats {

0 commit comments

Comments
 (0)