Added/updated snippets for docs (#2318)
This commit is contained in:
20
docs/doc_examples/36e09bbd5896498ede0f5d37a18eae2c.asciidoc
Normal file
20
docs/doc_examples/36e09bbd5896498ede0f5d37a18eae2c.asciidoc
Normal file
@ -0,0 +1,20 @@
|
||||
// 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: 2,
|
||||
routing: 1,
|
||||
refresh: "true",
|
||||
document: {
|
||||
text: "This is a child document.",
|
||||
"my-join-field": {
|
||||
name: "my-child",
|
||||
parent: "1",
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user