# Ingest nodes and metadata

**URL:** <https://discuss.elastic.co/t/ingest-nodes-and-metadata/88308>\
**Category:** Elasticsearch\
**Created:** [June 5, 2017, 5:25pm UTC](https://discuss.elastic.co/t/ingest-nodes-and-metadata/88308 "2017-06-05T17:25:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elastic\_boston](https://avatars.discourse-cdn.com/v4/letter/e/a183cd/32.png) [@elastic\_boston](https://discuss.elastic.co/u/elastic_boston)\
**Post date:** [June 5, 2017, 5:25pm UTC](https://discuss.elastic.co/t/ingest-nodes-and-metadata/88308/1 "2017-06-05T17:25:32Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [June 6, 2017, 3:02am UTC](https://discuss.elastic.co/t/ingest-nodes-and-metadata/88308/2 "2017-06-06T03:02:29Z")

</div>

I don't know ingest particularly well but whatever works in a regular index request ought to work in a reindex request. We have tests for some ingest/reindex combinations but I don't think we have this one.

---

<div class="post-metadata">

**Author:** ![elastic\_boston](https://avatars.discourse-cdn.com/v4/letter/e/a183cd/32.png) [@elastic\_boston](https://discuss.elastic.co/u/elastic_boston)\
**Post date:** [June 6, 2017, 10:56pm UTC](https://discuss.elastic.co/t/ingest-nodes-and-metadata/88308/3 "2017-06-06T22:56:46Z")

</div>

Thanks for your answer

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 4, 2017, 10:56pm UTC](https://discuss.elastic.co/t/ingest-nodes-and-metadata/88308/4 "2017-07-04T22:56:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
