Auto-generated code for main (#2551)

This commit is contained in:
Elastic Machine
2025-01-07 17:48:46 +00:00
committed by GitHub
parent 0ee486bc9c
commit b95aa986b7
66 changed files with 2455 additions and 647 deletions

View File

@ -0,0 +1,22 @@
// 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: "test-index",
mappings: {
properties: {
infer_field: {
type: "semantic_text",
inference_id: ".elser-2-elasticsearch",
},
source_field: {
type: "text",
copy_to: "infer_field",
},
},
},
});
console.log(response);
----