Thanks Alexander. Seems script is going to work, but before I do that (enable and try scripts), is there any way to tell ES to merge attributes while calling upsert (i.e. ES would take care of merging instead of we writing a script)?
ES cannot really take care of merging, as it is hard to tell what merging means. For one persons it means, all elements of a list should be concatenated together. For someone else it means, that all elements of a list should be concatenated together, but without duplicates. What about deeper inner objects, how should those be merged?
As it is really hard to answer this questions without knowing the application, scripting is there, so you can solve this.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.