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
Copy file name to clipboardExpand all lines: docs/reference/data-streams/set-up-tsds.asciidoc
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -279,6 +279,20 @@ POST metrics-weather_sensors-dev/_rollover
279
279
// TEST[setup:tsds]
280
280
// TEST[teardown:tsds_cleanup]
281
281
282
+
[discrete]
283
+
[[set-up-component-templates]]
284
+
==== A note about component templates and index.mode setting
285
+
286
+
Configuring a TSDS via an index template that uses component templates is a bit more complicated.
287
+
Typically with component templates mappings and settings get scattered across multiple component templates.
288
+
When configuring the `index.mode` setting in a component template, the `index.routing_path` setting needs to
289
+
be defined in the same component template. Additionally the fields mentioned in the `index.routing_path`
290
+
also need to be defined in the same component template with the `time_series_dimension` attribute enabled.
291
+
292
+
The reasons for this is that each component template needs to be valid on its own and the time series index mode
293
+
requires the `index.routing_path` setting. When configuring the `index.mode` setting in an index template, the `index.routing_path` setting is configured automatically. It is derived from
294
+
the field mappings with `time_series_dimension` attribute enabled.
0 commit comments