# Does it make sense to filter out documents with min\_score?

**URL:** https://discuss.elastic.co/t/does-it-make-sense-to-filter-out-documents-with-min-score/109785
**Category:** Elasticsearch
**Created:** [November 30, 2017, 3:51pm UTC](https://discuss.elastic.co/t/does-it-make-sense-to-filter-out-documents-with-min-score/109785 "2017-11-30T15:51:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chris-asl](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@chris-asl](https://discuss.elastic.co/u/chris-asl)
#### Post date: [November 30, 2017, 3:51pm UTC](https://discuss.elastic.co/t/does-it-make-sense-to-filter-out-documents-with-min-score/109785/1 "2017-11-30T15:51:17Z")

</div>

Hello,

I am trying to optimize the results of some queries in order to get only the relevant documents.  
My use case is that for a given query, I am getting 4 matches instead of 3.  
The scores of the documents are:

- 0.71508944
- 0.33722776
- 0.13875061
- 0.007067728

Notice that the latest one seems to have a very low score.

My question is, whether it makes sense in this case to use `min_score`.

Follow-up: If so, can the `min_score` value be calculated with a function? (so that it's not a fixed value)

Notes: ElasticSearch version 2.4.1

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [December 1, 2017, 8:10am UTC](https://discuss.elastic.co/t/does-it-make-sense-to-filter-out-documents-with-min-score/109785/2 "2017-12-01T08:10:30Z")

</div>

`min_score` needs to be a fixed value. Maybe it makes more sense to investigate why the last match is a match at all and if you can refine your query, if you really do not consider it a match?

P.S. you might want to think about upgrading, you are using a soon to be unsupported version

---

<div class="post-metadata">

### Author: ![chris-asl](https://avatars.discourse-cdn.com/v4/letter/c/f475e1/32.png) [@chris-asl](https://discuss.elastic.co/u/chris-asl)
#### Post date: [December 4, 2017, 12:32pm UTC](https://discuss.elastic.co/t/does-it-make-sense-to-filter-out-documents-with-min-score/109785/3 "2017-12-04T12:32:11Z")

</div>

I agree on evaluating why does it considered a match.

It's on the plans to upgrade! Thank you 🙂

---

<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: [January 1, 2018, 12:32pm UTC](https://discuss.elastic.co/t/does-it-make-sense-to-filter-out-documents-with-min-score/109785/4 "2018-01-01T12:32:18Z")

</div>

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