# How to get a more accurate score？

**URL:** <https://discuss.elastic.co/t/how-to-get-a-more-accurate-score/222546>\
**Category:** Elasticsearch\
**Created:** [March 7, 2020, 7:50am UTC](https://discuss.elastic.co/t/how-to-get-a-more-accurate-score/222546 "2020-03-07T07:50:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aure](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@Aure](https://discuss.elastic.co/u/Aure)\
**Post date:** [March 7, 2020, 7:50am UTC](https://discuss.elastic.co/t/how-to-get-a-more-accurate-score/222546/1 "2020-03-07T07:50:07Z")

</div>

```
Can anyone explain this situation? Different time, same score? I use the exp function:

```

"functions": [  
{  
"exp": {  
"evnt\_time": {  
"origin": "now",  
"scale": "900d",  
"decay": 0.1  
}  
}  
}  
]  
There is result：  
 ![无标题](https://us1.discourse-cdn.com/elastic/original/3X/c/0/c061bf09f50bce5d61ab6759307c47cdc5db73e8.png)

Thanks!

---

<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:** [March 7, 2020, 10:22am UTC](https://discuss.elastic.co/t/how-to-get-a-more-accurate-score/222546/2 "2020-03-07T10:22:31Z")

</div>

You have a very small difference in time (3s) between the timestamps compared to a large scale (900d). Is it possible that the expected difference in score is less than the precision of the floating point representation? What would you expect the scores to be?

---

<div class="post-metadata">

**Author:** ![Aure](https://avatars.discourse-cdn.com/v4/letter/a/977dab/32.png) [@Aure](https://discuss.elastic.co/u/Aure)\
**Post date:** [March 9, 2020, 1:04am UTC](https://discuss.elastic.co/t/how-to-get-a-more-accurate-score/222546/3 "2020-03-09T01:04:25Z")

</div>

I hope that every second will produce a unique score. This sorts the scores, and the time order is correct. How does Scale affect the calculation of scores? I don't know how to adjust scale and decay to get the desired score.Thanks!

---

<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:** [March 9, 2020, 6:36am UTC](https://discuss.elastic.co/t/how-to-get-a-more-accurate-score/222546/4 "2020-03-09T06:36:03Z")

</div>

Why do they all need a different score? Why do you not just sort them by the timestamp?

---

<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 6, 2020, 6:36am UTC](https://discuss.elastic.co/t/how-to-get-a-more-accurate-score/222546/5 "2020-04-06T06:36:03Z")

</div>

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