# Scoring based on existence of all terms even if one term appears multiple times

**URL:** <https://discuss.elastic.co/t/scoring-based-on-existence-of-all-terms-even-if-one-term-appears-multiple-times/49665>\
**Category:** Elasticsearch\
**Created:** [May 10, 2016, 1:58pm UTC](https://discuss.elastic.co/t/scoring-based-on-existence-of-all-terms-even-if-one-term-appears-multiple-times/49665 "2016-05-10T13:58:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moshe\_Sharon](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@Moshe\_Sharon](https://discuss.elastic.co/u/Moshe_Sharon)\
**Post date:** [May 10, 2016, 1:58pm UTC](https://discuss.elastic.co/t/scoring-based-on-existence-of-all-terms-even-if-one-term-appears-multiple-times/49665/1 "2016-05-10T13:58:51Z")

</div>

Trying to score documents in a way that if all the term words exist will get better score then document with two of the terms appears multiple times

thanks

Mos

---

<div class="post-metadata">

**Author:** ![abdon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdon/32/9195_2.png) [@abdon](https://discuss.elastic.co/u/abdon)\
**Post date:** [May 10, 2016, 2:10pm UTC](https://discuss.elastic.co/t/scoring-based-on-existence-of-all-terms-even-if-one-term-appears-multiple-times/49665/2 "2016-05-10T14:10:58Z")

</div>

You may be interested in using a constant score query, which ignores the frequencies that the default TF/IDF algorithm takes into account: [www.elastic.co/guide/en/elasticsearch/guide/current/ignoring-tfidf.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/ignoring-tfidf.html)

---

<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, 10:52pm UTC](https://discuss.elastic.co/t/scoring-based-on-existence-of-all-terms-even-if-one-term-appears-multiple-times/49665/3 "2017-07-05T22:52:46Z")

</div>


