# Score based on Term Frequency alone

**URL:** <https://discuss.elastic.co/t/score-based-on-term-frequency-alone/83323>\
**Category:** Elasticsearch\
**Created:** [April 23, 2017, 12:51pm UTC](https://discuss.elastic.co/t/score-based-on-term-frequency-alone/83323 "2017-04-23T12:51:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hey-arnold](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@hey-arnold](https://discuss.elastic.co/u/hey-arnold)\
**Post date:** [April 25, 2017, 11:04pm UTC](https://discuss.elastic.co/t/score-based-on-term-frequency-alone/83323/2 "2017-04-25T23:04:41Z")

</div>

Ok, If anyone wants to disable IDF, disable TF, as to just score based on the presence of a term and boost value on the field, in elastic search v5+, then see the following plugin:

> **[farisk/elasticsearch-boolean-similarity-plugin](https://github.com/farisk/elasticsearch-boolean-similarity-plugin)**
>
> elasticsearch-boolean-similarity-plugin - Boolean similarity from Lucene made available in elasticsearch v5.x via a plugin

If you don't want to disable TF but don't know how to make a plugin, the code in the repo above should help, adding TF should be simple.

Also note some guy has implemented this into the latest elasticsearch code, see:

> <https://github.com/elastic/elasticsearch/commit/8359dd05c9aa75588c679a8ae151951fa00f001b>

  
You will just need to set "similarity": "boolean" on properties. This is available in elasticsearch 5.4.0 +

---

_[View the full topic](https://discuss.elastic.co/t/score-based-on-term-frequency-alone/83323)._
