44 lines
725 B
Plaintext
44 lines
725 B
Plaintext
// 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({
|
|
verbose: "true",
|
|
pipeline: {
|
|
description: "_description",
|
|
processors: [
|
|
{
|
|
set: {
|
|
field: "field2",
|
|
value: "_value2",
|
|
},
|
|
},
|
|
{
|
|
set: {
|
|
field: "field3",
|
|
value: "_value3",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
docs: [
|
|
{
|
|
_index: "index",
|
|
_id: "id",
|
|
_source: {
|
|
foo: "bar",
|
|
},
|
|
},
|
|
{
|
|
_index: "index",
|
|
_id: "id",
|
|
_source: {
|
|
foo: "rab",
|
|
},
|
|
},
|
|
],
|
|
});
|
|
console.log(response);
|
|
----
|