Add an example of dynamic field names (#27255)
This commit is contained in:
parent
3deba0ed1f
commit
67e677f443
|
@ -563,6 +563,20 @@ to set the index that the document will be indexed into:
|
|||
--------------------------------------------------
|
||||
// NOTCONSOLE
|
||||
|
||||
Dynamic field names are also supported. This example sets the field named after the
|
||||
value of `service` to the value of the field `code`:
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
{
|
||||
"set": {
|
||||
"field": "{{service}}"
|
||||
"value": "{{code}}"
|
||||
}
|
||||
}
|
||||
--------------------------------------------------
|
||||
// NOTCONSOLE
|
||||
|
||||
[[handling-failure-in-pipelines]]
|
||||
== Handling Failures in Pipelines
|
||||
|
||||
|
|
Loading…
Reference in New Issue