Auto-generated code for 8.15 (#2411)

This commit is contained in:
Elastic Machine
2024-10-28 17:21:16 +01:00
committed by GitHub
parent e47b135e8d
commit fc80b3247d
18 changed files with 249 additions and 10 deletions

View File

@ -0,0 +1,16 @@
// 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.index({
index: "amazon-reviews",
id: 1,
document: {
review_text:
"This product is lifechanging! I'm telling all my friends about it.",
review_vector: [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8],
},
});
console.log(response);
----