# Is it possible to map multiple source doc fields to the same index field

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-map-multiple-source-doc-fields-to-the-same-index-field/202735>\
**Category:** Elasticsearch\
**Created:** [October 8, 2019, 9:34pm UTC](https://discuss.elastic.co/t/is-it-possible-to-map-multiple-source-doc-fields-to-the-same-index-field/202735 "2019-10-08T21:34:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![haroutk](https://avatars.discourse-cdn.com/v4/letter/h/e274bd/32.png) [@haroutk](https://discuss.elastic.co/u/haroutk)\
**Post date:** [October 8, 2019, 9:34pm UTC](https://discuss.elastic.co/t/is-it-possible-to-map-multiple-source-doc-fields-to-the-same-index-field/202735/1 "2019-10-08T21:34:42Z")

</div>

Hi folks,  
does anyone know if it's possible to map two different source fields to a single index field?

For example, i will be storing two differnt types of a source docs (source1 and sourc2) in the same index  
source1 has a field called "myfield" and source2 has a field called "yourfield" (these fields are of same type, string)

i would like to index both of the field as "ourfield".

Is this possible?

thanks

---

<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:** [November 5, 2019, 9:34pm UTC](https://discuss.elastic.co/t/is-it-possible-to-map-multiple-source-doc-fields-to-the-same-index-field/202735/2 "2019-11-05T21:34:48Z")

</div>

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