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.