# Disabling Elasticsearch Inverse Document Frequency scoring on ES relevance score

**URL:** <https://discuss.elastic.co/t/disabling-elasticsearch-inverse-document-frequency-scoring-on-es-relevance-score/75145>\
**Category:** Elasticsearch\
**Created:** [February 15, 2017, 7:08am UTC](https://discuss.elastic.co/t/disabling-elasticsearch-inverse-document-frequency-scoring-on-es-relevance-score/75145 "2017-02-15T07:08:21Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Sumit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@Sumit\_Gupta](https://discuss.elastic.co/u/Sumit_Gupta)\
**Post date:** [February 15, 2017, 9:05am UTC](https://discuss.elastic.co/t/disabling-elasticsearch-inverse-document-frequency-scoring-on-es-relevance-score/75145/4 "2017-02-15T09:05:51Z")

</div>

@jpountz Look like both of these requirements are same

> [@Calculating with Document Frequency, not Inverse Document Frequency](https://discuss.elastic.co/t/calculating-with-document-frequency-not-inverse-document-frequency/12479):
>
> Hello, I have gist [https://gist.github.com/anonymous/5813541](https://gist.github.com/anonymous/5813541) where I search for 'small'. But result where 'small' is just once is higher then the result where 'small' is twice. I want the results where the more frequent the 'small' is, the higher in the results. So, I want DF, not IDF. Is there any way to disable IDF or override idf() in Similarity class? Or how can I solve the problem? Thanks in advance. -- You received this message because you are subscribed to the Google Groups "ela…

---

_[View the full topic](https://discuss.elastic.co/t/disabling-elasticsearch-inverse-document-frequency-scoring-on-es-relevance-score/75145)._
