# Relative min\_score option

**URL:** <https://discuss.elastic.co/t/relative-min-score-option/63440>\
**Category:** Elasticsearch\
**Created:** [October 19, 2016, 8:22pm UTC](https://discuss.elastic.co/t/relative-min-score-option/63440 "2016-10-19T20:22:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Doug\_Nelson](https://avatars.discourse-cdn.com/v4/letter/d/c89c15/32.png) [@Doug\_Nelson](https://discuss.elastic.co/u/Doug_Nelson)\
**Post date:** [October 19, 2016, 8:22pm UTC](https://discuss.elastic.co/t/relative-min-score-option/63440/1 "2016-10-19T20:22:41Z")

</div>

Since the min\_score is currently just an absolute value. What would be more useful would be a relative min score. When sorting, it would really nice to limit the results to those that score above a minimum threshold, say 30% for example.

---

<div class="post-metadata">

**Author:** ![polyfractal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/polyfractal/32/48162_2.png) [@polyfractal](https://discuss.elastic.co/u/polyfractal)\
**Post date:** [October 19, 2016, 8:49pm UTC](https://discuss.elastic.co/t/relative-min-score-option/63440/2 "2016-10-19T20:49:39Z")

</div>

You can do it today with the [Scroll API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html) . Execute your query of choice, note the number of matching documents in the first response and then keep scrolling until you've seen `n%` of the docs that you're interested in 🙂

I doubt this will ever be added as a "regular search" feature for performance reasons. E.g. asking for docs above 30% score == return the top 70% of the results. Unfortunately, if you have 1 billion documents, that means we return 700 million documents in a single request 🙂

---

<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:** [July 5, 2017, 10:11pm UTC](https://discuss.elastic.co/t/relative-min-score-option/63440/3 "2017-07-05T22:11:07Z")

</div>


