소스 검색

Add a note about enabling time series index mode via a component template (#110050)

Closes #109149
Martijn van Groningen 1 년 전
부모
커밋
1b0e800f5b
1개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. 14 0
      docs/reference/data-streams/set-up-tsds.asciidoc

+ 14 - 0
docs/reference/data-streams/set-up-tsds.asciidoc

@@ -279,6 +279,20 @@ POST metrics-weather_sensors-dev/_rollover
 // TEST[setup:tsds]
 // TEST[teardown:tsds_cleanup]
 
+[discrete]
+[[set-up-component-templates]]
+==== A note about component templates and index.mode setting
+
+Configuring a TSDS via an index template that uses component templates is a bit more complicated.
+Typically with component templates mappings and settings get scattered across multiple component templates.
+When configuring the `index.mode` setting in a component template, the `index.routing_path` setting needs to
+be defined in the same component template. Additionally the fields mentioned in the `index.routing_path`
+also need to be defined in the same component template with the `time_series_dimension` attribute enabled.
+
+The reasons for this is that each component template needs to be valid on its own and the time series index mode
+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
+the field mappings with `time_series_dimension` attribute enabled.
+
 [discrete]
 [[set-up-tsds-whats-next]]
 ==== What's next?