Combine multiple document into one document with limited Fields ( merging of documents )

Thank you for the information. We are able to achieve using Painless script. is there any other way as well?