Add an example of dynamic field names (#27255)

This commit is contained in:
Loek van Gool 2017-11-03 23:20:58 +01:00 committed by GitHub
parent 3deba0ed1f
commit 67e677f443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -563,6 +563,20 @@ to set the index that the document will be indexed into:
-------------------------------------------------- --------------------------------------------------
// NOTCONSOLE // 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-failure-in-pipelines]]
== Handling Failures in Pipelines == Handling Failures in Pipelines