How can i sort by heat?

I want to customize the search results,which sort it by heat.
Heat means click rate,the more time of click rate,the higher heat.
And then the higher the click rate, the higher the ranking about the search results.
Anyone has any idea?
thanks
ES version is 6.3.0

You'll need to store "heat" as a field on docs and use something like function score query to blend the relevance score of the document with the boost provided by the heat field.

Probably not very efficient to increment the heat field every time a doc ends up in the top results either. Batch up search matches in a seperate file/index and apply any "heat" updates in a batch process.

Thank you for your help!
we have the similar solution,but we think it is diffcult to implement and is not efficient.
anyway thank you:heart:

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