I need to change data types of two of my fields.
- From string to object
- From Nested (array) to object.
I understand that this cannot be changed within the same index and I would have to use _REINDEX
.
I am been trying to do this but been largely unsuccessfull.
Example:
Below are the current fields:
"role": "Full",
"access": [
{
"client": "Full"
}
]
New fields:
"role": {
"env1": "Full",
"env2": "Full",
"env3": "Full"
},
"access": {
"env1": [
{
"client": "Full"
}
],
"env2": [
{
"client": "Full"
}
],
"env3": [
{
"client": "Full"
}
]
}
I understand that we use ingest node feature but it doesn't seem to work with objects. Please help?