(cherry picked from commit f737290d10)
Co-authored-by: Josh Mock <joshua.mock@elastic.co>
28 lines
597 B
Plaintext
28 lines
597 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.putPipeline({
|
|
id: "my-pipeline-id",
|
|
description: "My optional pipeline description",
|
|
processors: [
|
|
{
|
|
set: {
|
|
description: "My optional processor description",
|
|
field: "my-keyword-field",
|
|
value: "foo",
|
|
},
|
|
},
|
|
],
|
|
_meta: {
|
|
reason: "set my-keyword-field to foo",
|
|
serialization: {
|
|
class: "MyPipeline",
|
|
id: 10,
|
|
},
|
|
},
|
|
});
|
|
console.log(response);
|
|
----
|