Skip to content

Commit

Permalink
[Backport 8.13] Update bulk.asciidoc change 'date' property to 'time'…
Browse files Browse the repository at this point in the history
… to match index creation (#2160)

(cherry picked from commit 7471710)

Co-authored-by: SuperGingie <Pennington.Joe@gmail.com>
  • Loading branch information
github-actions[bot] and SuperGingie committed Mar 20, 2024
1 parent 3190b60 commit dbb685f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/examples/bulk.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit dbb685f

Please sign in to comment.