# Elastic score as percentage

**URL:** https://discuss.elastic.co/t/elastic-score-as-percentage/187252
**Category:** Elasticsearch
**Created:** [June 25, 2019, 7:26am UTC](https://discuss.elastic.co/t/elastic-score-as-percentage/187252 "2019-06-25T07:26:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Roobal\_Jindal](https://avatars.discourse-cdn.com/v4/letter/r/ecb155/32.png) [@Roobal\_Jindal](https://discuss.elastic.co/u/Roobal_Jindal)
#### Post date: [June 25, 2019, 7:26am UTC](https://discuss.elastic.co/t/elastic-score-as-percentage/187252/1 "2019-06-25T07:26:57Z")

</div>

Use case: We have thousands of user records in an index. We have configurable rules for searching users which defines user's attributes and their weightage.

Lets say, Rule is having following fields with their boost/weight

Name - 2  
License - 4  
Email - 3

We have used bool query with boost assigned to each field.  
Now, we simply query the data by providing required 3 properties and want to have similar match percentage of the record.

Lets say, Name and license matched, and email matched to some extent so we want to see the approximate match percentage of the result.

There are problems with the \_score . We are not able to judge the extreme points of the score.

If I ingest User A in index and query the same user, it gives \_score lets say 18.50.  
if I again insert User A and again run the same query, it gives \_score less than before i.e. 17.50 and returns 2 results. Score isnt consistent and thus we cant put threshold score.

I simply want to answer if search is successful or not, If matching percentage is \>80%, then we assume search is successful. How to set threshold min\_score or get percentage? Any good solution? TIA

---

<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 23, 2019, 7:26am UTC](https://discuss.elastic.co/t/elastic-score-as-percentage/187252/2 "2019-07-23T07:26:58Z")

</div>

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