You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnawaitthis.transport.request({ path, method, querystring, body, meta },options)
601
+
}
602
+
571
603
/**
572
604
* Delete an index template. The provided <index-template> may contain multiple template names separated by a comma. If multiple template names are specified then there is no wildcard support and the provided names should match completely with existing templates.
573
605
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.x/indices-delete-template.html | Elasticsearch API documentation}
@@ -1163,6 +1195,38 @@ export default class Indices {
1163
1195
returnawaitthis.transport.request({ path, method, querystring, body, meta },options)
1164
1196
}
1165
1197
1198
+
/**
1199
+
* Returns the data stream options of the selected data streams.
1200
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.x/index.html | Elasticsearch API documentation}
returnawaitthis.transport.request({ path, method, querystring, body, meta },options)
1228
+
}
1229
+
1166
1230
/**
1167
1231
* Get mapping definitions. Retrieves mapping definitions for one or more fields. For data streams, the API retrieves field mappings for the stream’s backing indices. This API is useful if you don't need a complete mapping or if an index mapping contains a large number of fields.
1168
1232
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.x/indices-get-field-mapping.html | Elasticsearch API documentation}
@@ -1669,6 +1733,38 @@ export default class Indices {
1669
1733
returnawaitthis.transport.request({ path, method, querystring, body, meta },options)
1670
1734
}
1671
1735
1736
+
/**
1737
+
* Updates the data stream options of the selected data streams.
1738
+
* @see {@link https://www.elastic.co/guide/en/elasticsearch/reference/8.x/index.html | Elasticsearch API documentation}
returnawaitthis.transport.request({ path, method, querystring, body, meta },options)
1766
+
}
1767
+
1672
1768
/**
1673
1769
* Create or update an index template. Index templates define settings, mappings, and aliases that can be applied automatically to new indices. Elasticsearch applies templates to new indices based on an wildcard pattern that matches the index name. Index templates are applied during data stream or index creation. For data streams, these settings and mappings are applied when the stream's backing indices are created. Settings and mappings specified in a create index API request override any settings or mappings specified in an index template. Changes to index templates do not affect existing indices, including the existing backing indices of a data stream. You can use C-style `/* *\/` block comments in index templates. You can include comments anywhere in the request body, except before the opening curly bracket. **Multiple matching templates** If multiple index templates match the name of a new index or data stream, the template with the highest priority is used. Multiple templates with overlapping index patterns at the same priority are not allowed and an error will be thrown when attempting to create a template matching an existing index template at identical priorities. **Composing aliases, mappings, and settings** When multiple component templates are specified in the `composed_of` field for an index template, they are merged in the order specified, meaning that later component templates override earlier component templates. Any mappings, settings, or aliases from the parent index template are merged in next. Finally, any configuration on the index request itself is merged. Mapping definitions are merged recursively, which means that later mapping components can introduce new field mappings and update the mapping configuration. If a field mapping is already contained in an earlier component, its definition will be completely overwritten by the later one. This recursive merging strategy applies not only to field mappings, but also root options like `dynamic_templates` and `meta`. If an earlier component contains a `dynamic_templates` block, then by default new `dynamic_templates` entries are appended onto the end. If an entry already exists with the same key, then it is overwritten by the new definition.
1674
1770
* @see {@link https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-indices-put-index-template | Elasticsearch API documentation}
0 commit comments