Skip to content

Commit 534398d

Browse files
Update constant-keyword.asciidoc (elastic#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 73c56a5)
1 parent c8ee1d5 commit 534398d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/reference/mapping/types/constant-keyword.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ indexing requests are equivalent:
4040
--------------------------------
4141
POST logs-debug/_doc
4242
{
43-
"date": "2019-12-12",
43+
"@timestamp": "2019-12-12",
4444
"message": "Starting up Elasticsearch",
4545
"level": "debug"
4646
}
4747
4848
POST logs-debug/_doc
4949
{
50-
"date": "2019-12-12",
50+
"@timestamp": "2019-12-12",
5151
"message": "Starting up Elasticsearch"
5252
}
5353
--------------------------------

0 commit comments

Comments
 (0)