# Boosting popular news

**URL:** <https://discuss.elastic.co/t/boosting-popular-news/6349>\
**Category:** Elasticsearch\
**Created:** [January 11, 2012, 4:47pm UTC](https://discuss.elastic.co/t/boosting-popular-news/6349 "2012-01-11T16:47:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eugene\_Strokin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eugene_strokin/32/1238_2.png) [@Eugene\_Strokin](https://discuss.elastic.co/u/Eugene_Strokin)\
**Post date:** [January 11, 2012, 4:47pm UTC](https://discuss.elastic.co/t/boosting-popular-news/6349/1 "2012-01-11T16:47:57Z")

</div>

Hello, I remamber Brandon Sterne announced Social News aggregator,  
which is based on ES, while ago. I have a question about boosting  
popular news. I have similar task for my project, I need to boost some  
documents based on user's like/dislike actions in last N days.  
Could you give me some advice where should I start? And if this advice  
will be on some real application (like [sharengeti.com](http://sharengeti.com)) example it  
would be double grate)))  
In general I've started by creating a new document type called Like,  
which would have Document ID and User ID, and date when Like is  
happened. Now I can store and index Likes of my users.  
But now I need to count likes of my documents from last N days, and  
use the number as a boost factor. I prefer to do this on a fly, but I  
don't know how, if possible at all. Could you please give me some  
advice here?  
In worst case I was planning to have some kind of job, which would  
calculate the likes hourly and update a document with the number, but  
this would make relevantency of search not real time, and updating  
documents each hour is really what I don't want to do.

Thanks in advance,  
Eugene S.

---

<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, 3:43am UTC](https://discuss.elastic.co/t/boosting-popular-news/6349/2 "2017-07-06T03:43:05Z")

</div>


