Boosting likes, views, comment(count) fields


(chenm) #1

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.
For more options, visit https://groups.google.com/groups/opt_out.


(Dan Tuffery) #2

Hi,

You can use a custom score query:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-custom-score-query.html

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

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html

Dan

On Sunday, November 10, 2013 8:42:25 AM UTC, 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.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #3