# ElasticSearch normalized the score for each document

**URL:** <https://discuss.elastic.co/t/elasticsearch-normalized-the-score-for-each-document/78785>\
**Category:** Elasticsearch\
**Created:** [March 16, 2017, 1:40am UTC](https://discuss.elastic.co/t/elasticsearch-normalized-the-score-for-each-document/78785 "2017-03-16T01:40:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philip\_Moniaga](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/philip_moniaga/32/16397_2.png) [@Philip\_Moniaga](https://discuss.elastic.co/u/Philip_Moniaga)\
**Post date:** [March 16, 2017, 1:40am UTC](https://discuss.elastic.co/t/elasticsearch-normalized-the-score-for-each-document/78785/1 "2017-03-16T01:40:54Z")

</div>

Is it possible to normalized score in elastic search using function\_score from relevance score? so, we can get max\_score/\_score range 0 to 1 for each document and we can put a threshold min\_score because we know the exact score

My case: I want to search the document that has at least 50% of words from query for example  
query : Iphone  
document: New Iphone (50% because two words and contains iphone)  
document: New iphone 7 (33% because three words)

---

<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:** [March 16, 2017, 7:39am UTC](https://discuss.elastic.co/t/elasticsearch-normalized-the-score-for-each-document/78785/2 "2017-03-16T07:39:38Z")

</div>

Relevance scoring is not bounded, you may be able to force it into a bound with a function score, but I'd expect it to be pretty useless.

---

<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:** [April 13, 2017, 7:39am UTC](https://discuss.elastic.co/t/elasticsearch-normalized-the-score-for-each-document/78785/3 "2017-04-13T07:39:39Z")

</div>

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