47 lines
667 B
Plaintext
47 lines
667 B
Plaintext
// This file is autogenerated, DO NOT EDIT
|
|
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
|
|
|
[source, js]
|
|
----
|
|
const response = await client.bulk({
|
|
filter_path: 'items.*.error',
|
|
body: [
|
|
{
|
|
update: {
|
|
_id: '5',
|
|
_index: 'index1'
|
|
}
|
|
},
|
|
{
|
|
doc: {
|
|
my_field: 'baz'
|
|
}
|
|
},
|
|
{
|
|
update: {
|
|
_id: '6',
|
|
_index: 'index1'
|
|
}
|
|
},
|
|
{
|
|
doc: {
|
|
my_field: 'baz'
|
|
}
|
|
},
|
|
{
|
|
update: {
|
|
_id: '7',
|
|
_index: 'index1'
|
|
}
|
|
},
|
|
{
|
|
doc: {
|
|
my_field: 'baz'
|
|
}
|
|
}
|
|
]
|
|
})
|
|
console.log(response)
|
|
----
|
|
|