mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-30 11:58:36 +00:00
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:
parent
f0668cabbc
commit
12e378b3ac
@ -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>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user