Skip to content

Commit dbb685f

Browse files
[Backport 8.13] Update bulk.asciidoc change 'date' property to 'time' to match index creation (#2160)
(cherry picked from commit 7471710) Co-authored-by: SuperGingie <[email protected]>
1 parent 3190b60 commit dbb685f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/examples/bulk.asciidoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,27 @@ async function run () {
3636
id: 1,
3737
text: 'If I fall, don\'t bring me back.',
3838
user: 'jon',
39-
date: new Date()
39+
time: new Date()
4040
}, {
4141
id: 2,
4242
text: 'Winter is coming',
4343
user: 'ned',
44-
date: new Date()
44+
time: new Date()
4545
}, {
4646
id: 3,
4747
text: 'A Lannister always pays his debts.',
4848
user: 'tyrion',
49-
date: new Date()
49+
time: new Date()
5050
}, {
5151
id: 4,
5252
text: 'I am the blood of the dragon.',
5353
user: 'daenerys',
54-
date: new Date()
54+
time: new Date()
5555
}, {
5656
id: 5, // change this value to a string to see the bulk response with errors
5757
text: 'A girl is Arya Stark of Winterfell. And I\'m going home.',
5858
user: 'arya',
59-
date: new Date()
59+
time: new Date()
6060
}]
6161
6262
const operations = dataset.flatMap(doc => [{ index: { _index: 'tweets' } }, doc])

0 commit comments

Comments
 (0)