Which query type can give you an average score of the sub-queries?

Say I have a bunch of sub-queries, using bool query "should" I can get the sum of each matched query score into the final score. How do I get an average score instead of sum? e.g.:

{"query":{"bool":{"should":[{sub-query scored 2},{sub-query scored 8}]}}}

Instead of getting 10 for this document, I want to see a final score of (2+8)/2 = 5.

Thank you.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.