# Most frequent searched QUERY string - Ferret

**URL:** <https://www.ruby-forum.com/t/most-frequent-searched-query-string-ferret/144907>\
**Category:** Rails\
**Created:** [August 4, 2008, 9:00am UTC](https://www.ruby-forum.com/t/most-frequent-searched-query-string-ferret/144907 "2008-08-04T09:00:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgudibanda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a9adbd/32.png) [@sgudibanda](https://www.ruby-forum.com/u/sgudibanda)\
**Post date:** [August 4, 2008, 9:00am UTC](https://www.ruby-forum.com/t/most-frequent-searched-query-string-ferret/144907/1 "2008-08-04T09:00:57Z")

</div>

Hi,

I need to calculate most frequent searches on a particular model. I am  
using ferret for searching in full text mode.

For eg: Search on hospital names. I have a form which allows user to  
enter a search query, and underneath ferret does the search and provides  
the results.

Now, I would like to show the user, some previous search related data  
like Most frequent/popular search data.How can i do that? Does ferret  
have any inbuilt mechanism for this or do I have to build my own. Please  
suggest on ideas as well.

Regards,  
SG
