Auto-generated code for main (#2384)

This commit is contained in:
Elastic Machine
2024-10-28 21:12:59 +01:00
committed by GitHub
parent 20ac2a637e
commit a7123f807d
93 changed files with 2023 additions and 438 deletions

View File

@ -0,0 +1,23 @@
// 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.indices.create({
index: "amazon-reviews",
mappings: {
properties: {
review_vector: {
type: "dense_vector",
dims: 8,
index: true,
similarity: "cosine",
},
review_text: {
type: "text",
},
},
},
});
console.log(response);
----