How to multiply a result coming from Elasticsearch by a certain factor. For example the result from Elasticsearch without multiplying would look like this:
{ [ 1 => { score: 10 }, 2 => { score: 20 } ] }
I want the score to be multiplied by 4. The factor (here: 4) should be variable. The result would be:
{ [ 1 => { score: 40 }, 2 => { score: 80 } ] }
Is this possible, and, if yes, how would I do that?
Thanks in advance.