Files
elasticsearch-js/docs/doc_examples/fb1263cfdcbb6a89b20b57004d7e0dfc.asciidoc
2024-07-29 17:10:05 -05:00

29 lines
525 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({
pipeline: {
processors: [
{
set: {
field: "my_field",
value: "{{{input_field.1}}}",
},
},
],
},
docs: [
{
_index: "index",
_id: "id",
_source: {
input_field: ["Ubuntu", "Windows", "Ventura"],
},
},
],
});
console.log(response);
----