# Calculation of tfNorm

**URL:** <https://discuss.elastic.co/t/calculation-of-tfnorm/92662>\
**Category:** Elasticsearch\
**Created:** [July 11, 2017, 1:42pm UTC](https://discuss.elastic.co/t/calculation-of-tfnorm/92662 "2017-07-11T13:42:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HeNKiEeE](https://avatars.discourse-cdn.com/v4/letter/h/ec9cab/32.png) [@HeNKiEeE](https://discuss.elastic.co/u/HeNKiEeE)\
**Post date:** [July 11, 2017, 1:42pm UTC](https://discuss.elastic.co/t/calculation-of-tfnorm/92662/1 "2017-07-11T13:42:20Z")

</div>

Hi,

Im looking into the explanation of why certain results get ranked the way they do in my implementation of ElasticSearch. The thing I cannot figure out or find anywhere on the web is the following:

What is the motivation behind the formula of tfNorm? It includes the parameters termFreq, k1, b, avgFieldLength and fieldLength and how are these calculated?

Can someone please clarify how the algorithm works the way it does by explaining how you could manually calculate the aforementioned parameters.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 11, 2017, 2:23pm UTC](https://discuss.elastic.co/t/calculation-of-tfnorm/92662/2 "2017-07-11T14:23:18Z")

</div>

May I suggest you watch this video from elastic{ON} 2016?

[https://www.elastic.co/fr/elasticon/conf/2016/sf/improved-text-scoring-with-bm25](https://www.elastic.co/fr/elasticon/conf/2016/sf/improved-text-scoring-with-bm25)

HTH

---

<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:** [August 8, 2017, 2:37pm UTC](https://discuss.elastic.co/t/calculation-of-tfnorm/92662/3 "2017-08-08T14:37:26Z")

</div>

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