I'm using ES 2.3.1 and I have a use case where there could be more than 1 documents with given ID and we want to merge those documents.
- document1 comes with "name:abc"
- again document1 comes with "name: xyz"
- Now I want document1 to have: "name: [abc, xyz]" i.e. merged document.
I thought using upsert will solve my problem, but upsert adds new attributes/fields without merging existing/overlapping fields between 2 documents.
How can I achieve what I want with ES ?