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
@@ -61,7 +61,7 @@ GET my_index/_search
"my_field" : {
"script" : {
"lang" : "painless",
- "source" : "doc['date'].date.nanos" <6>
+ "source" : "doc['date'].value.nano" <6>
}