# Does the score calculation admit a maximum?

**URL:** https://discuss.elastic.co/t/does-the-score-calculation-admit-a-maximum/163926
**Category:** Elasticsearch
**Created:** [January 11, 2019, 4:00pm UTC](https://discuss.elastic.co/t/does-the-score-calculation-admit-a-maximum/163926 "2019-01-11T16:00:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![a.gabriel](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@a.gabriel](https://discuss.elastic.co/u/a.gabriel)
#### Post date: [January 11, 2019, 4:00pm UTC](https://discuss.elastic.co/t/does-the-score-calculation-admit-a-maximum/163926/1 "2019-01-11T16:00:08Z")

</div>

Hello the community,

I have an index of resumes and I want to compare it to a job offer as query. As long as I understand the tf idf that is behind the scoring does not have maximum, isn't it? When I process the query, I have the list of resumes and there scores. It also provides a max value in the result that is useful to normalized results. However, it means the document with the best score will be normalized as a 100% matching document whereas the fact of being first doesn't mean it is the best document. There certainly a resume that fits better the job offer but is not in the index. Does elastichsearch permit to calculate a max score that is not the score of the first document? This kind of problem can be handled by elasticsearch?

Kind regards,

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [January 13, 2019, 1:42pm UTC](https://discuss.elastic.co/t/does-the-score-calculation-admit-a-maximum/163926/2 "2019-01-13T13:42:08Z")

</div>

Scores are relative so there is no max defined and you can not set that either. Have a look at [this thread](https://discuss.elastic.co/t/limiting-the-relevancy-score-of-all-the-searched-documents/48123/6) for a similar discussion.

---

<div class="post-metadata">

### Author: ![a.gabriel](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@a.gabriel](https://discuss.elastic.co/u/a.gabriel)
#### Post date: [January 14, 2019, 8:08am UTC](https://discuss.elastic.co/t/does-the-score-calculation-admit-a-maximum/163926/3 "2019-01-14T08:08:44Z")

</div>

Thank you for you response, I found some threads about the subject but it wasn't clear for me and I didn't found this one.

---

<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: [February 11, 2019, 8:08am UTC](https://discuss.elastic.co/t/does-the-score-calculation-admit-a-maximum/163926/4 "2019-02-11T08:08:47Z")

</div>

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