diff --git a/docs/reference/alias.asciidoc b/docs/reference/alias.asciidoc index 715f766eb707e..f33cc23aa4c6f 100644 --- a/docs/reference/alias.asciidoc +++ b/docs/reference/alias.asciidoc @@ -208,9 +208,9 @@ GET _alias/logs [[write-index]] === Write index -If an alias points to multiple indices, you can use `is_write_index` to specify -a write index or data stream. {es} routes any write requests for the alias to -this index or data stream. +You can use `is_write_index` to specify a write index or data stream for an +alias. {es} routes any write requests for the alias to this index or data +stream. [source,console] ---- @@ -235,11 +235,7 @@ POST _aliases ---- // TEST[s/^/PUT _data_stream\/logs-nginx.access-prod\nPUT _data_stream\/logs-my_app-default\n/] -If an alias points to multiple indices or data streams and `is_write_index` -isn't set, the alias rejects write requests. If an index alias points to one -index and `is_write_index` isn't set, the index automatically acts as the write -index. Data stream aliases don't automatically set a write data stream, even if -the alias points to one data stream. +include::{es-repo-dir}/indices/aliases.asciidoc[tag=write-index-defaults] TIP: We recommend using data streams to store append-only time series data. If you frequently update or delete existing time series data, use an index alias diff --git a/docs/reference/indices/aliases.asciidoc b/docs/reference/indices/aliases.asciidoc index b235da45dd700..5c8e3e8481afb 100644 --- a/docs/reference/indices/aliases.asciidoc +++ b/docs/reference/indices/aliases.asciidoc @@ -131,8 +131,16 @@ Only the `add` action supports this parameter. // tag::alias-options[] `is_write_index`:: -(Optional, Boolean) If `true`, sets the <> for the alias. Defaults to `false`. +(Optional, Boolean) If `true`, sets the write index or data stream for the +alias. ++ +// tag::write-index-defaults[] +If an alias points to multiple indices or data streams and `is_write_index` +isn't set, the alias rejects write requests. If an index alias points to one +index and `is_write_index` isn't set, the index automatically acts as the write +index. Data stream aliases don't automatically set a write data stream, even if +the alias points to one data stream. +// end::write-index-defaults[] // end::alias-options[] + Only the `add` action supports this parameter.