From 534398da84b7c6300437c5f73d4824ae75e34aac Mon Sep 17 00:00:00 2001 From: Peter Titov <11168913+iamhowardtheduck@users.noreply.github.com> Date: Fri, 6 Jun 2025 06:36:13 -0700 Subject: [PATCH] Update constant-keyword.asciidoc (#129053) Change the field name `date` to `@timestamp` so that users will be able to follow along with documentation. If not, then the date field is mapped as a keyword, which confuses users. (cherry picked from commit 73c56a5812b3d132cee16c9fccd6589c91691c93) --- docs/reference/mapping/types/constant-keyword.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/mapping/types/constant-keyword.asciidoc b/docs/reference/mapping/types/constant-keyword.asciidoc index 69f40c22f7c98..eeef025868ea2 100644 --- a/docs/reference/mapping/types/constant-keyword.asciidoc +++ b/docs/reference/mapping/types/constant-keyword.asciidoc @@ -40,14 +40,14 @@ indexing requests are equivalent: -------------------------------- POST logs-debug/_doc { - "date": "2019-12-12", + "@timestamp": "2019-12-12", "message": "Starting up Elasticsearch", "level": "debug" } POST logs-debug/_doc { - "date": "2019-12-12", + "@timestamp": "2019-12-12", "message": "Starting up Elasticsearch" } --------------------------------