# Add new field into an array

**URL:** <https://discuss.elastic.co/t/add-new-field-into-an-array/220822>\
**Category:** Elasticsearch\
**Created:** [February 25, 2020, 10:28am UTC](https://discuss.elastic.co/t/add-new-field-into-an-array/220822 "2020-02-25T10:28:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aymen\_Rahal1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aymen_rahal1/32/47218_2.png) [@Aymen\_Rahal1](https://discuss.elastic.co/u/Aymen_Rahal1)\
**Post date:** [February 25, 2020, 10:28am UTC](https://discuss.elastic.co/t/add-new-field-into-an-array/220822/1 "2020-02-25T10:28:59Z")

</div>

I wanna add a new field into my product mapping.  
below is my mapping:  
{  
"mappings": {  
"properties": {  
"name": {  
"type": "text",  
"fields": {  
"keyword": {"type": "keyword"}  
}  
},  
"resslers": {  
"type": "nested",  
"properties": {  
"resller": {  
"type": "text"  
},  
"prix": {  
"type": "integer"  
}  
}  
}  
}  
}  
}

I wanna add a field called product inside the array "reselers" that take the "prix" and the "ressller" field.

---

<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:** [March 24, 2020, 10:29am UTC](https://discuss.elastic.co/t/add-new-field-into-an-array/220822/2 "2020-03-24T10:29:06Z")

</div>

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