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