# Score interval

**URL:** <https://discuss.elastic.co/t/score-interval/124794>\
**Category:** Elasticsearch\
**Created:** [March 20, 2018, 2:44pm UTC](https://discuss.elastic.co/t/score-interval/124794 "2018-03-20T14:44:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mvienne](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@mvienne](https://discuss.elastic.co/u/mvienne)\
**Post date:** [March 20, 2018, 2:44pm UTC](https://discuss.elastic.co/t/score-interval/124794/1 "2018-03-20T14:44:23Z")

</div>

Is there a limit to the value of `_score` without the use of `boost` in a search query ?

I need to return the score of each search results in a [0, 1] interval, and I'm wondering if I can just divide the score returned by Elasticsearch by 100 or something.

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [March 20, 2018, 3:41pm UTC](https://discuss.elastic.co/t/score-interval/124794/2 "2018-03-20T15:41:20Z")

</div>

Elasticsearch/Lucene scores are relative only to the specific query used to  
generate them and cannot be normalized to other queries or to a range. You  
can use aggregations to calculate the min/max scores are normalize the  
values on the client side.

---

<div class="post-metadata">

**Author:** ![mvienne](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@mvienne](https://discuss.elastic.co/u/mvienne)\
**Post date:** [March 20, 2018, 3:58pm UTC](https://discuss.elastic.co/t/score-interval/124794/3 "2018-03-20T15:58:36Z")

</div>

Are you saying that it's not possible to get a score between 0 and 1, while having this score relative to all the documents (rather than relative to the best score for the matched documents) ?

---

<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:** [April 17, 2018, 3:58pm UTC](https://discuss.elastic.co/t/score-interval/124794/4 "2018-04-17T15:58:38Z")

</div>

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