# Does SetProcessor require dynamic mapping?

**URL:** <https://discuss.elastic.co/t/does-setprocessor-require-dynamic-mapping/315078>\
**Category:** Elasticsearch\
**Tags:** ingest-pipeline\
**Created:** [September 24, 2022, 9:58am UTC](https://discuss.elastic.co/t/does-setprocessor-require-dynamic-mapping/315078 "2022-09-24T09:58:12Z")\
**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 24, 2022, 9:58am UTC](https://discuss.elastic.co/t/does-setprocessor-require-dynamic-mapping/315078/1 "2022-09-24T09:58:12Z")

</div>

Does an index require dynamic mapping for a SetProcessor to be able to enrich a document with a new field?

If using strict mapping, would the field that a SetProcessor is going to set need to be added to the mapping beforehand?

---

<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 24, 2022, 10:01am UTC](https://discuss.elastic.co/t/does-setprocessor-require-dynamic-mapping/315078/2 "2022-09-24T10:01:08Z")

</div>

> [@fifthist](#):
>
> Does an index require dynamic mapping for a SetProcessor to be able to enrich a document with a new field?

I do not think so.

> [@fifthist](#):
>
> If using strict mapping, would the field that a SetProcessor is going to set need to be added to the mapping beforehand?

Yes.

---

<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 22, 2022, 10:01am UTC](https://discuss.elastic.co/t/does-setprocessor-require-dynamic-mapping/315078/3 "2022-10-22T10:01:40Z")

</div>

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