Solr has specific feature to allow scoring based on payload -
{!payload_score f=payload_field func=sum operator=or}A B C
https://lucene.apache.org/solr/guide/7_1/other-parsers.html#payload-score-parser
Is there any similar functionality in ES, which can allow scoring based on terms in payload field and , score can be a sum of payloads.