Custom scoring mode for nested query?

Is it possible to use custom scoring mode on inner_hits? Let's say I want to multiply max score by sum of scores.

(Related to this Function score and nested query: use hit count in score?)