# Is it possible to change variable names through mapping?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-change-variable-names-through-mapping/200896>\
**Category:** Elasticsearch\
**Created:** [September 24, 2019, 2:53pm UTC](https://discuss.elastic.co/t/is-it-possible-to-change-variable-names-through-mapping/200896 "2019-09-24T14:53:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![planetracer](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@planetracer](https://discuss.elastic.co/u/planetracer)\
**Post date:** [September 24, 2019, 2:53pm UTC](https://discuss.elastic.co/t/is-it-possible-to-change-variable-names-through-mapping/200896/1 "2019-09-24T14:53:21Z")

</div>

If I have the following:  
`"categories":[{"category":"TB","totaldur":55},{"category":"CPB","totaldur":568},{"category":"PP","totaldur":23}`

is it possible to change it so it's like this  
`"categories":[{"category":"TB","tbtotaldur":55},{"category":"CPB","cpbtotaldur":568},{"category":"PP","pptotaldur":23}`

Thank you!

---

<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, 2019, 2:53pm UTC](https://discuss.elastic.co/t/is-it-possible-to-change-variable-names-through-mapping/200896/2 "2019-10-22T14:53:31Z")

</div>

Closed on October 22, 2019, 2:53pm UTC

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