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

44 lines
759 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-image-index",
refresh: "true",
operations: [
{
index: {
_id: "1",
},
},
{
"image-vector": [1, 5, -20],
"file-type": "jpg",
title: "mountain lake",
},
{
index: {
_id: "2",
},
},
{
"image-vector": [42, 8, -15],
"file-type": "png",
title: "frozen lake",
},
{
index: {
_id: "3",
},
},
{
"image-vector": [15, 11, 23],
"file-type": "jpg",
title: "mountain lake lodge",
},
],
});
console.log(response);
----