Added/updated snippets for docs (#2318)
This commit is contained in:
22
docs/doc_examples/15d4be58359542775f4aff88e6d8adb5.asciidoc
Normal file
22
docs/doc_examples/15d4be58359542775f4aff88e6d8adb5.asciidoc
Normal file
@ -0,0 +1,22 @@
|
||||
// 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.ingest.simulate({
|
||||
id: "my-pipeline",
|
||||
docs: [
|
||||
{
|
||||
_source: {
|
||||
"my-keyword-field": "FOO",
|
||||
},
|
||||
},
|
||||
{
|
||||
_source: {
|
||||
"my-keyword-field": "BAR",
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user