# Access data from different index using ingest pipeline

**URL:** <https://discuss.elastic.co/t/access-data-from-different-index-using-ingest-pipeline/197312>\
**Category:** Elasticsearch\
**Created:** [August 29, 2019, 10:14am UTC](https://discuss.elastic.co/t/access-data-from-different-index-using-ingest-pipeline/197312 "2019-08-29T10:14:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rschirin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rschirin/32/45283_2.png) [@rschirin](https://discuss.elastic.co/u/rschirin)\
**Post date:** [August 29, 2019, 10:14am UTC](https://discuss.elastic.co/t/access-data-from-different-index-using-ingest-pipeline/197312/1 "2019-08-29T10:14:03Z")

</div>

hi all,  
when a pipeline catches an index operation is there a way to query another index to get a specific field's value?  
I mean, if the current document will be indexed into `index1` but I want to create also another field getting value from `index2` is it possible to use `ingest pipeline`? Maybe using `script` processor?  
I know that I could use Logstash, but currently I cannot do it.

regards

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 29, 2019, 11:23am UTC](https://discuss.elastic.co/t/access-data-from-different-index-using-ingest-pipeline/197312/2 "2019-08-29T11:23:44Z")

</div>

currently there is no such functionality, but you may want to follow the progress in this issue [https://github.com/elastic/elasticsearch/issues/32789](https://github.com/elastic/elasticsearch/issues/32789)

---

<div class="post-metadata">

**Author:** ![rschirin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rschirin/32/45283_2.png) [@rschirin](https://discuss.elastic.co/u/rschirin)\
**Post date:** [August 29, 2019, 11:46am UTC](https://discuss.elastic.co/t/access-data-from-different-index-using-ingest-pipeline/197312/3 "2019-08-29T11:46:34Z")

</div>

@spinscale thank you for the feedback.  
just one doubt since I have updated my post probably when you were answering to it: `script` processor cannot be used to search into a specific index, right?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 29, 2019, 12:49pm UTC](https://discuss.elastic.co/t/access-data-from-different-index-using-ingest-pipeline/197312/4 "2019-08-29T12:49:15Z")

</div>

correct, a `script` processor cannot be used for a search.

---

<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:** [September 26, 2019, 12:53pm UTC](https://discuss.elastic.co/t/access-data-from-different-index-using-ingest-pipeline/197312/5 "2019-09-26T12:53:48Z")

</div>

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