// 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({ pipeline: { description: "_description", processors: [ { set: { field: "field2", value: "_value", }, }, ], }, docs: [ { _index: "index", _id: "id", _source: { foo: "bar", }, }, { _index: "index", _id: "id", _source: { foo: "rab", }, }, ], }); console.log(response); ----