Added/updated snippets for docs (#2318)
This commit is contained in:
20
docs/doc_examples/64d24f4b2a57dba48092dafe3eb68ad1.asciidoc
Normal file
20
docs/doc_examples/64d24f4b2a57dba48092dafe3eb68ad1.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.mget({
|
||||
index: "test",
|
||||
stored_fields: "field1,field2",
|
||||
docs: [
|
||||
{
|
||||
_id: "1",
|
||||
},
|
||||
{
|
||||
_id: "2",
|
||||
stored_fields: ["field3", "field4"],
|
||||
},
|
||||
],
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user