# Can we have concatenation of multiple fields in "es.mapping.id"

**URL:** <https://discuss.elastic.co/t/can-we-have-concatenation-of-multiple-fields-in-es-mapping-id/133215>\
**Category:** Elasticsearch\
**Created:** [May 24, 2018, 7:18pm UTC](https://discuss.elastic.co/t/can-we-have-concatenation-of-multiple-fields-in-es-mapping-id/133215 "2018-05-24T19:18:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![divyanshi](https://avatars.discourse-cdn.com/v4/letter/d/f1d935/32.png) [@divyanshi](https://discuss.elastic.co/u/divyanshi)\
**Post date:** [May 24, 2018, 7:18pm UTC](https://discuss.elastic.co/t/can-we-have-concatenation-of-multiple-fields-in-es-mapping-id/133215/1 "2018-05-24T19:18:54Z")

</div>

Can we have concatenation of multiple fields in "es.mapping.id"?  
If yes how to do that?

I am writing to ES using scala spark code and want to create the id with concatenation of two existing fields.

---

<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:** [June 21, 2018, 7:18pm UTC](https://discuss.elastic.co/t/can-we-have-concatenation-of-multiple-fields-in-es-mapping-id/133215/2 "2018-06-21T19:18:55Z")

</div>

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