Skip to content

Commit

Permalink
[DOCS] Fix data stream ref in index template docs (elastic#73292)
Browse files Browse the repository at this point in the history
Updates an outdated reference to empty `data_stream` objects. The create index
template API's `data_stream` parameter now supports the `hidden` property.
  • Loading branch information
jrodewig committed May 20, 2021
1 parent f5aa824 commit 6c5ab8c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/reference/indices/put-index-template.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ specified, meaning that the last component template specified has the highest pr
`data_stream`::
(Optional, object)
If this object is included, the template is used to create data streams and
their backing indices. Supports an empty object: `data_stream: { }`
their backing indices. Supports an empty object.
+
Data streams require a matching index template with a `data_stream` object.
See <<create-index-template,create an index template>>.
Expand Down Expand Up @@ -293,10 +293,8 @@ To check the `_meta`, you can use the <<indices-get-template, get index template
[[data-stream-definition]]
===== Data stream definition

To use an index template for a data stream, the template must include an empty `data_stream` object.
Data stream templates are only used for a stream's backing indices,
they are not applied to regular indices.
See <<create-index-template,create an index template>>.
To use an index template for data streams, the template must include a
`data_stream` object. See <<create-index-template,create an index template>>.

[source,console]
--------------------------------------------------
Expand Down

0 comments on commit 6c5ab8c

Please sign in to comment.