Auto-generated code for 8.16 (#2410)

Co-authored-by: Josh Mock <joshua.mock@elastic.co>
This commit is contained in:
Elastic Machine
2024-10-28 21:11:56 +01:00
committed by GitHub
parent 18df52feb4
commit 9479d82644
156 changed files with 2154 additions and 705 deletions

View File

@ -0,0 +1,35 @@
// 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: {
date: {
type: "date",
},
},
},
});
console.log(response);
const response1 = await client.index({
index: "idx",
id: 1,
document: {
date: ["2015-01-01T12:10:30Z", "2014-01-01T12:10:30Z"],
},
});
console.log(response1);
----