# Does IndexRequest trigger ingest phase for a document already in the index?

**URL:** <https://discuss.elastic.co/t/does-indexrequest-trigger-ingest-phase-for-a-document-already-in-the-index/315215>\
**Category:** Elasticsearch\
**Tags:** ingest-pipeline\
**Created:** [September 26, 2022, 8:49pm UTC](https://discuss.elastic.co/t/does-indexrequest-trigger-ingest-phase-for-a-document-already-in-the-index/315215 "2022-09-26T20:49:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fifthist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fifthist/32/111213_2.png) [@fifthist](https://discuss.elastic.co/u/fifthist)\
**Post date:** [September 26, 2022, 8:49pm UTC](https://discuss.elastic.co/t/does-indexrequest-trigger-ingest-phase-for-a-document-already-in-the-index/315215/1 "2022-09-26T20:49:39Z")

</div>

When using `index` mode, does `IndexRequest` trigger the ingest phase for a document already stored in an index?

I'd like to use an ingest pipeline on an index, and I want to use the set processor even for documents that already exist in the index and are being updated via an `IndexRequest` call. If `IndexRequest` replaces an existing document and triggers the ingest phase, then it sounds like an ingest pipeline with a set processor would trigger whenever the document is updated.

Can someone confirm?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [September 30, 2022, 3:53am UTC](https://discuss.elastic.co/t/does-indexrequest-trigger-ingest-phase-for-a-document-already-in-the-index/315215/2 "2022-09-30T03:53:02Z")

</div>

Yes, I believe that is the case.

---

<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:** [October 28, 2022, 3:53am UTC](https://discuss.elastic.co/t/does-indexrequest-trigger-ingest-phase-for-a-document-already-in-the-index/315215/3 "2022-10-28T03:53:06Z")

</div>

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