# Change the Relevance order

**URL:** <https://discuss.elastic.co/t/change-the-relevance-order/35280>\
**Category:** Elasticsearch\
**Created:** [November 23, 2015, 8:44am UTC](https://discuss.elastic.co/t/change-the-relevance-order/35280 "2015-11-23T08:44:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgnrk23](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pgnrk23/32/5636_2.png) [@pgnrk23](https://discuss.elastic.co/u/pgnrk23)\
**Post date:** [November 23, 2015, 8:44am UTC](https://discuss.elastic.co/t/change-the-relevance-order/35280/1 "2015-11-23T08:44:30Z")

</div>

I understand how elasticsearch calculate the score.  
The key factors are,

1. TF
2. IDF
3. Field Lenth Norms

But here is my case,  
If searching for a phrase, "Raj feels difficult",

If the document contains "Raj" more times than "Raj feels difficult", it is listed in the top.  
I have tried by disabling, norms  
"norms":  
{  
"enabled": "false"  
}  
and set "index\_options": "docs",

But the result is same.  
Can anyone help me on this?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [November 23, 2015, 11:32am UTC](https://discuss.elastic.co/t/change-the-relevance-order/35280/2 "2015-11-23T11:32:15Z")

</div>

What type of query are you using?

I believe the match\_phrase query might help you with your problem:

[https://www.elastic.co/guide/en/elasticsearch/guide/current/phrase-matching.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/phrase-matching.html)

Did you check out _explain_ to better understand how scoring works?

[https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-explain.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-explain.html)

Hope this helps,  
Isabel

---

<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, 11:36pm UTC](https://discuss.elastic.co/t/change-the-relevance-order/35280/3 "2017-07-05T23:36:38Z")

</div>


