Auto-generated code for 8.17 (#2528)

This commit is contained in:
Elastic Machine
2024-12-10 17:41:02 +00:00
committed by GitHub
parent dd0a304641
commit b3e523ad57
28 changed files with 253 additions and 165 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);
----