# Why scoring is expensive

**URL:** <https://discuss.elastic.co/t/why-scoring-is-expensive/296808>\
**Category:** Elasticsearch\
**Created:** [February 10, 2022, 7:14am UTC](https://discuss.elastic.co/t/why-scoring-is-expensive/296808 "2022-02-10T07:14:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aniket\_Pant](https://avatars.discourse-cdn.com/v4/letter/a/77aa72/32.png) [@Aniket\_Pant](https://discuss.elastic.co/u/Aniket_Pant)\
**Post date:** [February 10, 2022, 7:14am UTC](https://discuss.elastic.co/t/why-scoring-is-expensive/296808/1 "2022-02-10T07:14:39Z")

</div>

referring to this [doc](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#query-dsl-function-score-query)

> for example, a score function is computationally expensive and it is sufficient to compute the score on a filtered set of documents.  
> why scoring is expensive in which terms we are talking about.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 10, 2022, 8:25am UTC](https://discuss.elastic.co/t/why-scoring-is-expensive/296808/2 "2022-02-10T08:25:47Z")

</div>

You're missing the critical part of that text;

> **This can be useful _if_** , for example, a score function is computationally expensive and it is sufficient to compute the score on a filtered set of documents.

I've highlighted the important parts, and italicised the most important part. It's saying that _IF_ it is, not that it is, but for some use cases it might be.

---

<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:** [March 10, 2022, 8:26am UTC](https://discuss.elastic.co/t/why-scoring-is-expensive/296808/3 "2022-03-10T08:26:00Z")

</div>

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