# Getting Elasticsearch to put scores on a 0-100 scale?

**URL:** <https://discuss.elastic.co/t/getting-elasticsearch-to-put-scores-on-a-0-100-scale/21114>\
**Category:** Elasticsearch\
**Created:** [December 5, 2014, 6:22pm UTC](https://discuss.elastic.co/t/getting-elasticsearch-to-put-scores-on-a-0-100-scale/21114 "2014-12-05T18:22:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joshua\_P](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@Joshua\_P](https://discuss.elastic.co/u/Joshua_P)\
**Post date:** [December 5, 2014, 6:22pm UTC](https://discuss.elastic.co/t/getting-elasticsearch-to-put-scores-on-a-0-100-scale/21114/1 "2014-12-05T18:22:37Z")

</div>

Everything that I've read about scoring in ES suggests that you really  
shouldn't do this. However, I need a score floor to make some automatic  
decisions for a user about which of the top results is most-likely a match  
to their query (if the first document returned has a score \>= 70% then we  
indicate to the user that this is a good match).

I've read the article on Lucene's Practical Scoring function and I know  
that a function\_score query is probably what I need here (or close to it).  
And I know the score from one query can't really be compared to the score  
from another. and attempts to normalize scores have never really worked out  
well.

Even though the intent of the query norm is to make results from different

> queries comparable, it doesn’t work very well. The only purpose of the  
> relevance \_score is to sort the results of the current query in the  
> correct order. You should not try to compare the relevance scores from  
> different queries.

Should I be thinking about a different search and scoring tool, or can I  
get ES to work the way I want it to?

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/41df8855-deac-46d1-ae8b-e125eceef616%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/41df8855-deac-46d1-ae8b-e125eceef616%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:45am UTC](https://discuss.elastic.co/t/getting-elasticsearch-to-put-scores-on-a-0-100-scale/21114/2 "2017-07-06T00:45:28Z")

</div>


