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

41 lines
676 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: "byte-image-index",
refresh: "true",
operations: [
{
index: {
_id: "1",
},
},
{
"byte-image-vector": [5, -20],
title: "moose family",
},
{
index: {
_id: "2",
},
},
{
"byte-image-vector": [8, -15],
title: "alpine lake",
},
{
index: {
_id: "3",
},
},
{
"byte-image-vector": [11, 23],
title: "full moon",
},
],
});
console.log(response);
----