[Backport 8.13] Update bulk.asciidoc change 'date' property to 'time' to match index creation (#2160)

(cherry picked from commit 747171097d)

Co-authored-by: SuperGingie <Pennington.Joe@gmail.com>
This commit is contained in:
github-actions[bot]
2024-03-20 13:44:51 -05:00
committed by GitHub
parent 3190b60cb5
commit dbb685f12e

View File

@ -36,27 +36,27 @@ async function run () {
id: 1,
text: 'If I fall, don\'t bring me back.',
user: 'jon',
date: new Date()
time: new Date()
}, {
id: 2,
text: 'Winter is coming',
user: 'ned',
date: new Date()
time: new Date()
}, {
id: 3,
text: 'A Lannister always pays his debts.',
user: 'tyrion',
date: new Date()
time: new Date()
}, {
id: 4,
text: 'I am the blood of the dragon.',
user: 'daenerys',
date: new Date()
time: new Date()
}, {
id: 5, // change this value to a string to see the bulk response with errors
text: 'A girl is Arya Stark of Winterfell. And I\'m going home.',
user: 'arya',
date: new Date()
time: new Date()
}]
const operations = dataset.flatMap(doc => [{ index: { _index: 'tweets' } }, doc])