Skip to content

Commit

Permalink
Update bulk.asciidoc change 'date' property to 'time' to match index …
Browse files Browse the repository at this point in the history
…creation (#2154)
  • Loading branch information
SuperGingie authored Mar 20, 2024
1 parent 67b2bf4 commit 7471710
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 7471710

Please sign in to comment.