Loop through results and update another index

Is it possible to loop through the results of a query and update (add a scripted field in) another index based on data within the result set?

Another way to think about this is updating an index with a lookup value from another index.

You might be able to reindex through an ingest pipeline with an enrich processor?