# Boost relevance by numeric field (the greater the value, more relevant it is)

**URL:** https://discuss.elastic.co/t/boost-relevance-by-numeric-field-the-greater-the-value-more-relevant-it-is/194896
**Category:** Elasticsearch
**Created:** [August 12, 2019, 5:42pm UTC](https://discuss.elastic.co/t/boost-relevance-by-numeric-field-the-greater-the-value-more-relevant-it-is/194896 "2019-08-12T17:42:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ffknob](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ffknob/32/37008_2.png) [@ffknob](https://discuss.elastic.co/u/ffknob)
#### Post date: [August 12, 2019, 5:42pm UTC](https://discuss.elastic.co/t/boost-relevance-by-numeric-field-the-greater-the-value-more-relevant-it-is/194896/1 "2019-08-12T17:42:55Z")

</div>

Hello

I need to include a "should" clause to try to boost the relevance of a query by a numeric field. The greater the field value is, more relevant the document should be.

I'm not sure how to approach this. At first I took a look at the "rank\_feature" field type. Would that be a way to solve this? Anyway, not for my case, since I think this feature is not available in \< 7.0 clusters...

What about "script\_score"?

For now what I am trying to do is to "should range gt 0" and then sorting the documents by "\_score" and my numeric field...

Any tips here?

Thank you

---

<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: [September 9, 2019, 5:42pm UTC](https://discuss.elastic.co/t/boost-relevance-by-numeric-field-the-greater-the-value-more-relevant-it-is/194896/2 "2019-09-09T17:42:56Z")

</div>

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