Added/updated snippets for docs (#2318)
This commit is contained in:
14
docs/doc_examples/d2f6fb271e97fde8685d7744e6718cc7.asciidoc
Normal file
14
docs/doc_examples/d2f6fb271e97fde8685d7744e6718cc7.asciidoc
Normal file
@ -0,0 +1,14 @@
|
||||
// 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: "text_payloads",
|
||||
id: 1,
|
||||
document: {
|
||||
text: "the|0 brown|3 fox|4 is|0 quick|10",
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user