# Increase score based on the numbers of fields matched

**URL:** <https://discuss.elastic.co/t/increase-score-based-on-the-numbers-of-fields-matched/129344>\
**Category:** Elasticsearch\
**Created:** [April 24, 2018, 3:58pm UTC](https://discuss.elastic.co/t/increase-score-based-on-the-numbers-of-fields-matched/129344 "2018-04-24T15:58:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuno\_cruz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nuno_cruz/32/30424_2.png) [@nuno\_cruz](https://discuss.elastic.co/u/nuno_cruz)\
**Post date:** [April 24, 2018, 3:58pm UTC](https://discuss.elastic.co/t/increase-score-based-on-the-numbers-of-fields-matched/129344/1 "2018-04-24T15:58:15Z")

</div>

What I want to do sounds simple enough, yet I can't find any information on how to do this.

I want to give a boost to my score, based on the numbers of fields matched during a search.

It seems to me I can use directly a value inside a document, but not other properties such as amount of fields matched, is this assumption correct?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 24, 2018, 4:14pm UTC](https://discuss.elastic.co/t/increase-score-based-on-the-numbers-of-fields-matched/129344/2 "2018-04-24T16:14:07Z")

</div>

A bool query with multiple should clauses will do that I think.

---

<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:** [May 22, 2018, 4:14pm UTC](https://discuss.elastic.co/t/increase-score-based-on-the-numbers-of-fields-matched/129344/3 "2018-05-22T16:14:09Z")

</div>

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