Auto-generated API code (#2587)

This commit is contained in:
Elastic Machine
2025-01-28 18:51:04 +01:00
committed by GitHub
parent 3627a4c56b
commit 3d3c72dc40
6 changed files with 226 additions and 479 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: "test-index",
mappings: {
properties: {
source_field: {
type: "text",
fields: {
infer_field: {
type: "semantic_text",
inference_id: ".elser-2-elasticsearch",
},
},
},
},
},
});
console.log(response);
----