# Automatically create a multivalued field that consists of values from selected fields

**URL:** <https://discuss.elastic.co/t/automatically-create-a-multivalued-field-that-consists-of-values-from-selected-fields/252826>\
**Category:** Elasticsearch\
**Created:** [October 21, 2020, 11:08am UTC](https://discuss.elastic.co/t/automatically-create-a-multivalued-field-that-consists-of-values-from-selected-fields/252826 "2020-10-21T11:08:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![newcomer](https://avatars.discourse-cdn.com/v4/letter/n/e5b9ba/32.png) [@newcomer](https://discuss.elastic.co/u/newcomer)\
**Post date:** [October 21, 2020, 11:08am UTC](https://discuss.elastic.co/t/automatically-create-a-multivalued-field-that-consists-of-values-from-selected-fields/252826/1 "2020-10-21T11:08:44Z")

</div>

I would like to have a field that consists of values of other fields. E.g if a document has 2 fields; name and age, then there will be automatically created a new multivalued field that consists of these two formentioned fields.

Example:  
"name" : John  
"age" : 20  
"combo" : [John, 20]

How can we do this in Elasticsearch? Is it possible to configure in any way to have this behaviour?

---

<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 18, 2020, 11:08am UTC](https://discuss.elastic.co/t/automatically-create-a-multivalued-field-that-consists-of-values-from-selected-fields/252826/2 "2020-11-18T11:08:58Z")

</div>

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