33 lines
682 B
Plaintext
33 lines
682 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",
|
|
description: "My optional pipeline description",
|
|
processors: [
|
|
{
|
|
set: {
|
|
description: "My optional processor description",
|
|
field: "my-long-field",
|
|
value: 10,
|
|
},
|
|
},
|
|
{
|
|
set: {
|
|
description: "Set 'my-boolean-field' to true",
|
|
field: "my-boolean-field",
|
|
value: true,
|
|
},
|
|
},
|
|
{
|
|
lowercase: {
|
|
field: "my-keyword-field",
|
|
},
|
|
},
|
|
],
|
|
});
|
|
console.log(response);
|
|
----
|