Hello All,
I want to merge two Index with same structure , which will create 3rd Index without overriding field values.
For example:
index_1:
"businessUnits": "FR,JP,IE"
index_2:
"businessUnits": "FR,GB,DE"
If I merge index_1 and index_2 using reindex API, It should not override values.
Ii should give output as : "businessUnits": "FR,JP,IE,FR,GB,DE"
PUT emea_test/_doc/871123365V
{
"type": "db-poc-user",
"skuNum": " 871123365V",
"businessUnits": "FR,JP,IE",
"businessUnitsWithNames": [
"[FR] France",
"[JP] Japan",
"[IE] Ireland"
],
"@timestamp": "2020-07-22T04:12:00.376Z"
}
==================================
PUT global_test/_doc/871123365V
{
"type": "db-test-user",
"skuNum": " 871123365V",
"businessUnits": "FR,GB,DE",
"businessUnitsWithNames": [
"[FR] France",
"[GB] UK",
"[DE] Germany"
],
"@timestamp": "2020-07-23T04:12:00.376Z"
}
Output should be (concatenate):
"skuNum": " 871123365V",
"businessUnits": "FR,JP,IE,FR,GB,DE"
"businessUnitsWithNames": [
"[FR] France",
"[JP] Japan",
"[IE] Ireland",
"[FR] France",
"[GB] UK",
"[DE] Germany"
],
Please help me with this use case