Files
elasticsearch-js/docs/doc_examples/8bf51fd50195b46bacbf872f460ebec2.asciidoc
2024-07-29 17:10:05 -05:00

30 lines
568 B
Plaintext

// 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",
mappings: {
_source: {
mode: "synthetic",
},
properties: {
versions: {
type: "version",
},
},
},
});
console.log(response);
const response1 = await client.index({
index: "idx",
id: 1,
document: {
versions: ["8.0.0-beta1", "8.5.0", "0.90.12", "2.6.1", "1.3.4", "1.3.4"],
},
});
console.log(response1);
----