# How to get total score?

**URL:** https://discuss.elastic.co/t/how-to-get-total-score/38102
**Category:** Elasticsearch
**Created:** [December 29, 2015, 11:40am UTC](https://discuss.elastic.co/t/how-to-get-total-score/38102 "2015-12-29T11:40:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Red](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@Red](https://discuss.elastic.co/u/Red)
#### Post date: [December 29, 2015, 11:40am UTC](https://discuss.elastic.co/t/how-to-get-total-score/38102/1 "2015-12-29T11:40:41Z")

</div>

ive got a problem when im trying to custom the score processing.  
im going to use "(\_score/TotalScore)_CustomTotalScore_weight" to calculate my own score.  
i think this can map the \_score to a controllable score space.

TotalScore should be the max score the elasticsearch could give in one query.  
CustomTotalScore is the max score i set. it could be 100, 50 or any other scores that i give.

the finally score could be the sum of the result of this full formula and the result of other formula.

but now, i cant find the TotalScore the elasticsearch give.

> so, what is the totalscore in query?

::: ive analysed the "explain" from elasticsearch to the query, im finding that, the total score is calculated with the score of each term. im wondering, if i can caculate the total score myself of each query when i know the term number and the total score for each term.

> so, i think the term number of each query can be easily obtained, but still, what could the total score of each term be in one query?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 5, 2017, 11:28pm UTC](https://discuss.elastic.co/t/how-to-get-total-score/38102/2 "2017-07-05T23:28:06Z")

</div>


