# Recent and Popular searches

**URL:** <https://discuss.elastic.co/t/recent-and-popular-searches/3772>\
**Category:** Elasticsearch\
**Created:** [January 13, 2011, 2:55pm UTC](https://discuss.elastic.co/t/recent-and-popular-searches/3772 "2011-01-13T14:55:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![poobah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/poobah/32/3283_2.png) [@poobah](https://discuss.elastic.co/u/poobah)\
**Post date:** [January 13, 2011, 2:55pm UTC](https://discuss.elastic.co/t/recent-and-popular-searches/3772/1 "2011-01-13T14:55:52Z")

</div>

Hi,

I'm trying to implement a feature that would list the 10 most recent  
searches and the 10 most popular search terms (weighted by the number  
of times the same term has been searched). Not sure how I can best  
approach this, any help would be really appreciated.

Thanks

Andy

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [January 14, 2011, 2:04pm UTC](https://discuss.elastic.co/t/recent-and-popular-searches/3772/2 "2011-01-14T14:04:06Z")

</div>

You can index your user search queries into another index (with the hits they matched), and then get stats / data on it.  
On Thursday, January 13, 2011 at 4:55 PM, poobah wrote:

> Hi,
> 
> I'm trying to implement a feature that would list the 10 most recent  
> searches and the 10 most popular search terms (weighted by the number  
> of times the same term has been searched). Not sure how I can best  
> approach this, any help would be really appreciated.
> 
> Thanks
> 
> Andy

---

<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, 4:13am UTC](https://discuss.elastic.co/t/recent-and-popular-searches/3772/3 "2017-07-06T04:13:54Z")

</div>


