# Boosting likes, views, comment(count) fields

**URL:** <https://discuss.elastic.co/t/boosting-likes-views-comment-count-fields/14339>\
**Category:** Elasticsearch\
**Created:** [November 10, 2013, 8:42am UTC](https://discuss.elastic.co/t/boosting-likes-views-comment-count-fields/14339 "2013-11-10T08:42:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenm](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@chenm](https://discuss.elastic.co/u/chenm)\
**Post date:** [November 10, 2013, 8:42am UTC](https://discuss.elastic.co/t/boosting-likes-views-comment-count-fields/14339/1 "2013-11-10T08:42:25Z")

</div>

Hello,

In query time, how can it boost score for numeric value giving higher score  
for higher values?

Thanks  
Chen

--  
This message may contain confidential and/or privileged information.  
If you are not the addressee or authorized to receive this on behalf of the  
addressee you must not use, copy, disclose or take action based on this  
message or any information herein.  
If you have received this message in error, please advise the sender  
immediately by reply email and delete this message. Thank you.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![dantuff](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@dantuff](https://discuss.elastic.co/u/dantuff)\
**Post date:** [November 10, 2013, 11:47am UTC](https://discuss.elastic.co/t/boosting-likes-views-comment-count-fields/14339/2 "2013-11-10T11:47:53Z")

</div>

Hi,

You can use a custom score query:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Or if you are using version 0.90.4 or greater you can use the function  
score query.

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Dan

On Sunday, November 10, 2013 8:42:25 AM UTC, [ch...@liveperson.com](mailto:ch...@liveperson.com) wrote:

> Hello,
> 
> In query time, how can it boost score for numeric value giving higher  
> score for higher values?
> 
> Thanks  
> Chen
> 
> This message may contain confidential and/or privileged information.  
> If you are not the addressee or authorized to receive this on behalf of  
> the addressee you must not use, copy, disclose or take action based on this  
> message or any information herein.  
> If you have received this message in error, please advise the sender  
> immediately by reply email and delete this message. Thank you.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:07am UTC](https://discuss.elastic.co/t/boosting-likes-views-comment-count-fields/14339/3 "2017-07-06T02:07:57Z")

</div>


