Added/updated snippets for docs (#2318)
This commit is contained in:
23
docs/doc_examples/f6edbed2b5b2709bbc13866a4780e27a.asciidoc
Normal file
23
docs/doc_examples/f6edbed2b5b2709bbc13866a4780e27a.asciidoc
Normal 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.index({
|
||||
index: "my-index-000001",
|
||||
id: 1,
|
||||
document: {
|
||||
username: "johnsmith",
|
||||
name: {
|
||||
first: "John",
|
||||
last: "Smith",
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
|
||||
const response1 = await client.indices.getMapping({
|
||||
index: "my-index-000001",
|
||||
});
|
||||
console.log(response1);
|
||||
----
|
||||
Reference in New Issue
Block a user