# Enrich Processor, Lookups: how to Update once through Enrich Pipeline generated document

**URL:** <https://discuss.elastic.co/t/enrich-processor-lookups-how-to-update-once-through-enrich-pipeline-generated-document/214958>\
**Category:** Elasticsearch\
**Created:** [January 14, 2020, 8:59am UTC](https://discuss.elastic.co/t/enrich-processor-lookups-how-to-update-once-through-enrich-pipeline-generated-document/214958 "2020-01-14T08:59:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mattteo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mattteo/32/60803_2.png) [@Mattteo](https://discuss.elastic.co/u/Mattteo)\
**Post date:** [January 14, 2020, 8:59am UTC](https://discuss.elastic.co/t/enrich-processor-lookups-how-to-update-once-through-enrich-pipeline-generated-document/214958/1 "2020-01-14T08:59:51Z")

</div>

1. We have many Lookup-indexes and one enrich pipeline to decode some values.
2. Data will be imported from a DB using logstash and a pipeline parameter within elasticsearch plugin.

output {  
elasticsearch {  
index =\> "customers"  
pipeline =\> "countries\_lookup"  
... }  
}

The question is: how can I update and reindex document using the same enrich pipeline? For example: I have a country ISO code within my document:  
{  
"countrycode":"US"  
}  
The pipeline adds a decoded nested object with a value for the country code:  
{  
"countrycode":"CH",  
"countryname" : {  
"code" : "CH",  
"name" : "Schweiz"  
}  
}  
Assume I want to update the document, change the country code, get new values from a lookup and reindex the document. How can I do that? is it possible to do it using logstash with input/http and output/elasticsearch plugins giving the same pipeline as a parameter? The "\_update" feature from elasticsearch unfortunately has no "pipeline" parameter to make it easier.

---

<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:** [February 11, 2020, 8:59am UTC](https://discuss.elastic.co/t/enrich-processor-lookups-how-to-update-once-through-enrich-pipeline-generated-document/214958/2 "2020-02-11T08:59:54Z")

</div>

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