I am trying to use the Ingest Node to transform metadata using the Reindex API. I want to copy metadata to a member field. My pipeline looks like
PUT _ingest/pipeline/p1
{
"processors" : [ {
"set" : {
"field": "myversion",
"value": "{{_source._ingest.version }}"
} }
] }
When I run it as
POST _reindex
{
"source": {
"index": "twitter"
},
"dest": {
"index": "twitter_dest",
"pipeline":"p1"
}
}
The version data is not copied into 'myversion'. Any ideas on what is wrong?