Files
elasticsearch-js/docs/doc_examples/bed14cc152522ca0726ac3746ebc31db.asciidoc
2024-07-29 17:10:05 -05:00

46 lines
674 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({
index: "my_index",
refresh: "true",
operations: [
{
index: {
_id: 1,
},
},
{
my_counter: 0,
},
{
index: {
_id: 2,
},
},
{
my_counter: 9223372036854776000,
},
{
index: {
_id: 3,
},
},
{
my_counter: 18446744073709552000,
},
{
index: {
_id: 4,
},
},
{
my_counter: 18446744073709552000,
},
],
});
console.log(response);
----