One thing to try out would be transforms, allowing you to group several documents together to create a so called entity centric index.
If the above does not help you this is something that you have to implement on the client side likely. Even though Elasticsearch has the ability to reindex a whole index, everything happens on a per document base so there is no ability to merge documents.