瀏覽代碼

Add time_series_dimensions param to flattened docs (#95374)

Salvatore Campagna 2 年之前
父節點
當前提交
ec2bdee31b
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 2 0
      docs/reference/data-streams/tsds.asciidoc
  2. 6 0
      docs/reference/mapping/types/flattened.asciidoc

+ 2 - 0
docs/reference/data-streams/tsds.asciidoc

@@ -102,6 +102,8 @@ parameter:
 * <<number,`long`>>
 * <<number,`unsigned_long`>>
 
+For a flattened field, use the `time_series_dimensions` parameter to configure an array of fields as dimensions. For details refer to <<flattened-params,`flattened`>>.
+
 [[dimension-limits]]
 .Dimension limits
 ****

+ 6 - 0
docs/reference/mapping/types/flattened.asciidoc

@@ -308,6 +308,12 @@ The following mapping parameters are accepted:
     whitespace when building a query for this field. Accepts `true` or `false`
     (default).
 
+`time_series_dimensions`::
+    (Optional, array of strings) A list of fields inside the flattened object, where each field is a dimension
+    of the time series. Each field is specified using the relative path from the
+    root field and does not include the root field name.
+
+
 [[flattened-synthetic-source]]
 ==== Synthetic `_source`