Fix incorrect date nanos docs example (#52249)

The example of how to access the nano value of a date_nanos field has
been broken since it was created. This commit fixes it to use the
correct scripting methods.

closes #51931
This commit is contained in:
Ryan Ernst 2020-02-12 15:54:39 -08:00 committed by Ryan Ernst
parent f0668cabbc
commit 12e378b3ac

View File

@ -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>
}
}
}