# Relative score threshold

**URL:** <https://discuss.elastic.co/t/relative-score-threshold/12830>\
**Category:** Elasticsearch\
**Created:** [July 17, 2013, 3:23pm UTC](https://discuss.elastic.co/t/relative-score-threshold/12830 "2013-07-17T15:23:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rob\_Styles](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rob_styles/32/1612_2.png) [@Rob\_Styles](https://discuss.elastic.co/u/Rob_Styles)\
**Post date:** [July 17, 2013, 3:23pm UTC](https://discuss.elastic.co/t/relative-score-threshold/12830/1 "2013-07-17T15:23:16Z")

</div>

I'm not sure I'm thinking about my problem correctly, so please correct my  
thinking if necessary.

We're working with census style data, names and addresses. Queries coming  
in are for parts of the data and we build boolean queries based on  
recognising parts of the query (titles, zip codes, states etc).

Our queries work well in terms of ranking results, and also return a high  
number of results because we're using several fields. Within the results we  
see, for good searches, a pattern in the scores.

The first result, or few results are good matches and will have high  
scores, then after those first few high scoring results the scores drop  
dramatically for the remaining (many) results.

What would help us in this situation would be min\_score, if the score could  
be relative to the the highest score. We prototyped this in by doing two  
searches, one to find the highest score, then a second search with a  
min\_score = highest\_score \* 0.8 and that works really well for us. What we  
get is essentially a result set where the last result is at least 80% of  
the score of the best match.

I can't help thinking I might be framing the problem wrong.

Any opinions/thoughts?

rob

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:25am UTC](https://discuss.elastic.co/t/relative-score-threshold/12830/2 "2017-07-06T02:25:55Z")

</div>


