diff --git a/docs/reference/mapping/types/date_nanos.asciidoc b/docs/reference/mapping/types/date_nanos.asciidoc index cf7082571ec31..4267d02936894 100644 --- a/docs/reference/mapping/types/date_nanos.asciidoc +++ b/docs/reference/mapping/types/date_nanos.asciidoc @@ -63,7 +63,7 @@ GET my_index/_search "my_field" : { "script" : { "lang" : "painless", - "source" : "doc['date'].date.nanos" <6> + "source" : "doc['date'].value.nano" <6> } } }