elasticsearch/docs/reference/indices
Martijn van Groningen cb6b05d12b
Fix the timestamp field of a data stream to @timestamp (#59076)
The commit makes the following changes:
* The timestamp field of a data stream definition in a composable
  index template can only be set to '@timestamp'.
* Removed custom data stream timestamp field validation and reuse the validation from `TimestampFieldMapper` and
  instead only check that the _timestamp field mapping has been defined on a backing index of a data stream.
* Moved code that injects _timestamp meta field mapping from `MetadataCreateIndexService#applyCreateIndexRequestWithV2Template58956(...)` method
  to `MetadataIndexTemplateService#collectMappings(...)` method.
* Fixed a bug (#58956) that cases timestamp field validation to be performed
  for each template and instead of the final mappings that is created.
* only apply _timestamp meta field if index is created as part of a data stream or data stream rollover,
this fixes a docs test, where a regular index creation matches (logs-*) with a template with a data stream definition.

Relates to #58642
Relates to #53100
Closes #58956
Closes #58583
2020-07-08 09:41:47 +02:00
..
apis Document the prohibition on freezing data stream write indices (#58058) 2020-06-17 10:16:18 -05:00
add-alias.asciidoc [DOCS] Replace docdir attribute with es-repo-dir (#57489) 2020-06-01 15:55:05 -07:00
alias-exists.asciidoc [DOCS] Replace docdir attribute with es-repo-dir (#57489) 2020-06-01 15:55:05 -07:00
aliases.asciidoc [DOCS] Clarify atomic change for alias swaps (#59154) 2020-07-07 11:38:54 -04:00
analyze.asciidoc Correct the type of the 'analyzer' parameter in the _analyze docs. (#56650) 2020-05-13 11:01:55 -07:00
clearcache.asciidoc [DOCS] Replace docdir attribute with es-repo-dir (#57489) 2020-06-01 15:55:05 -07:00
clone-index.asciidoc [DOCS] Prohibit cloning, splitting, and shrinking a data stream's write index (#58105) 2020-06-22 07:14:21 -05:00
close.asciidoc [DOCS] Replace docdir attribute with es-repo-dir (#57489) 2020-06-01 15:55:05 -07:00
component-templates.asciidoc [DOCS] Fix chunking in template API docs (#57632) 2020-06-03 17:14:20 -07:00
create-data-stream.asciidoc [DOCS] Remove `composable index template` refs (#58567) 2020-06-26 11:12:36 -04:00
create-index.asciidoc [DOCS] Replace docdir attribute with es-repo-dir (#57489) 2020-06-01 15:55:05 -07:00
dangling-index-delete.asciidoc Dangling indices documentation (#58751) 2020-07-03 16:28:32 +01:00
dangling-index-import.asciidoc Dangling indices documentation (#58751) 2020-07-03 16:28:32 +01:00
dangling-indices-list.asciidoc Dangling indices documentation (#58751) 2020-07-03 16:28:32 +01:00
delete-alias.asciidoc [DOCS] Replace docdir attribute with es-repo-dir (#57489) 2020-06-01 15:55:05 -07:00
delete-data-stream.asciidoc Update docs for delete data stream API to show that multiple names are supported (#58838) 2020-07-02 16:12:50 -05:00
delete-index-template.asciidoc [DOCS] Replace docdir attribute with es-repo-dir (#57489) 2020-06-01 15:55:05 -07:00
delete-index.asciidoc [DOCS] Prohibit deletion of a data stream's write index (#58341) 2020-06-18 15:46:25 -04:00
flush.asciidoc [DOCS] Add data streams to flush API docs (#58950) 2020-07-02 17:06:47 -04:00
forcemerge.asciidoc [DOCS] Add data streams to force merge API docs (#58951) 2020-07-07 13:08:19 -04:00
get-alias.asciidoc [DOCS] Replace docdir attribute with es-repo-dir (#57489) 2020-06-01 15:55:05 -07:00
get-data-stream.asciidoc [DOCS] Document get data stream API response body (#58344) 2020-06-18 16:18:32 -04:00
get-field-mapping.asciidoc [DOCS] Add data streams to get field mapping API docs (#58689) 2020-06-30 11:58:30 -04:00
get-index-template.asciidoc [DOCS] Add simulate ref (#58579) 2020-07-02 18:47:24 -07:00
get-index.asciidoc [DOCS] Replace docdir attribute with es-repo-dir (#57489) 2020-06-01 15:55:05 -07:00
get-mapping.asciidoc [DOCS] Replace docdir attribute with es-repo-dir (#57489) 2020-06-01 15:55:05 -07:00
get-settings.asciidoc [DOCS] Replace docdir attribute with es-repo-dir (#57489) 2020-06-01 15:55:05 -07:00
index-templates.asciidoc [DOCS] Add simulate ref (#58579) 2020-07-02 18:47:24 -07:00
indices-exists.asciidoc [DOCS] Replace docdir attribute with es-repo-dir (#57489) 2020-06-01 15:55:05 -07:00
open-close.asciidoc [DOCS] Make `<target>` defs consistent 2020-06-30 15:53:32 -04:00
put-mapping.asciidoc [DOCS] Replace `datatype` with `data type` (#58972) 2020-07-07 13:52:10 -04:00
recovery.asciidoc [DOCS] Replace docdir attribute with es-repo-dir (#57489) 2020-06-01 15:55:05 -07:00
refresh.asciidoc [DOCS] Replace docdir attribute with es-repo-dir (#57489) 2020-06-01 15:55:05 -07:00
resolve.asciidoc [DOCS] Fix snippet tests for resolve API docs (#58908) 2020-07-02 09:04:27 -04:00
rollover-index.asciidoc Fix the timestamp field of a data stream to @timestamp (#59076) 2020-07-08 09:41:47 +02:00
segments.asciidoc [DOCS] Replace docdir attribute with es-repo-dir (#57489) 2020-06-01 15:55:05 -07:00
shard-stores.asciidoc [DOCS] Add data streams to shard stores API docs (#59070) 2020-07-07 13:21:51 -04:00
shrink-index.asciidoc [DOCS] Prohibit cloning, splitting, and shrinking a data stream's write index (#58105) 2020-06-22 07:14:21 -05:00
simulate-index.asciidoc [DOCS] Add simulate ref (#58579) 2020-07-02 18:47:24 -07:00
simulate-template.asciidoc [DOCS] Add simulate ref (#58579) 2020-07-02 18:47:24 -07:00
split-index.asciidoc [DOCS] Prohibit cloning, splitting, and shrinking a data stream's write index (#58105) 2020-06-22 07:14:21 -05:00
stats.asciidoc [DOCS] Replace docdir attribute with es-repo-dir (#57489) 2020-06-01 15:55:05 -07:00
synced-flush.asciidoc Goodbye and thank you synced flush! (#50882) 2020-01-16 09:43:07 -05:00
template-exists.asciidoc [DOCS] Replace docdir attribute with es-repo-dir (#57489) 2020-06-01 15:55:05 -07:00
templates.asciidoc [DOCS] Add simulate ref (#58579) 2020-07-02 18:47:24 -07:00
update-settings.asciidoc [DOCS] Add data streams to put mapping and update settings API docs (#58849) 2020-07-02 09:11:04 -04:00