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,36 @@
// 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: "idx",
settings: {
index: {
mapping: {
source: {
mode: "synthetic",
},
},
},
},
mappings: {
properties: {
f: {
type: "scaled_float",
scaling_factor: 0.01,
},
},
},
});
console.log(response);
const response1 = await client.index({
index: "idx",
id: 1,
document: {
f: 123,
},
});
console.log(response1);
----